Session variables not working php

后端 未结 10 1441
别跟我提以往
别跟我提以往 2020-11-22 03:12

Here are the code of my login page where the login script checks for the authenticity of the user and then redirects to inbox page using header function.

<         


        
10条回答
  •  孤城傲影
    2020-11-22 04:06

    I had similar issue and with the cookie domain:

        ini_set('session.cookie_domain', '.domain.com');
    

    the domain was setup wrong so all sessions were ignored because the user cookie was never set right hope this will help someone.

提交回复
热议问题