PHP SESSION data lost between page loads with WAMPserver 2.0 on localhost

后端 未结 7 930
长情又很酷
长情又很酷 2021-01-15 02:08

I have a PHP authentication system on my website using the $_SESSION variable.

A form submits a username and password to the file \"login.php\". It is handled like t

7条回答
  •  悲哀的现实
    2021-01-15 02:44

    Faced the same problem but it was being caused by

    session_regenerate_id(true);
    

    So I just deleted it from my code.

提交回复
热议问题