(ASK) session_register Bermasalah

Discussion in 'Masalah Teknik dan Keamanan' started by yasergumilar, 29 Jun 2016.

Thread Status:
Not open for further replies.
  1. yasergumilar

    yasergumilar Poster 1.0

    Messages:
    77
    Likes Received:
    11
    Trophy Points:
    8
    Selamat pagi tuan2 DWH, sesuai judul di atas saya minta bantuan untuk session_register yang bermasalah. script.newsmetronet.com muncul error Fatal error: Call to undefined function session_register() in /home/newsmet/public_html/script/open_session.php on line 8

    Script:

    Mohon bantuannya tuan.
     
  2. Novan

    Novan Poster 2.0

    Messages:
    111
    Likes Received:
    13
    Trophy Points:
    18
    Pada versi PHP 5.3 keatas fungsi session_register di php sudah Deprecated.
    Solusi nya bisa gunakan $_SESSION['nama_variable'] untuk mendefinisikan sebuah variable session.
    CMIIW.
     
  3. yasergumilar

    yasergumilar Poster 1.0

    Messages:
    77
    Likes Received:
    11
    Trophy Points:
    8
    Script di atas setelah di gunakan $_SESSION['nama_variable'] jadi kaya gimana ?
     
  4. Novan

    Novan Poster 2.0

    Messages:
    111
    Likes Received:
    13
    Trophy Points:
    18
    Contohnya misal
    session_register("admintest");

    Ganti dengan
    $_SESSION['admintest'] = 'Isi valuenya';

    Kalo blm ada valuenya isi dengan True atau Null. Begitu jg dgn yg lainnya.
     
Loading...
Thread Status:
Not open for further replies.

Share This Page

Loading...