PHP session seemingly not working

后端 未结 3 1425
谎友^
谎友^ 2020-12-02 01:08

Session variables are apparently not working for me. I don\'t know what I\'m doing wrong. This is the code that I\'m using to check for a valid password:

if          


        
3条回答
  •  感动是毒
    2020-12-02 01:55

    You know that you've got to write session_start() before you use the $_SESSION variable in any request, right? It looks like you haven't put it in index.php anywhere.

提交回复
热议问题