Session variables not working php

后端 未结 10 1439
别跟我提以往
别跟我提以往 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 03:48

    The other important reason sessions can not work is playing with the session cookie settings, eg. setting session cookie lifetime to 0 or other low values because of simple mistake or by other developer for a reason.

    session_set_cookie_params(0)
    

提交回复
热议问题