PHP _Session variable no longer persistate

后端 未结 1 750
無奈伤痛
無奈伤痛 2021-01-28 06:11

I have wrote a code that has been working for the last past 3 month. Now suddenly, I noticed that my PHP _Session variable no longer persists between the different page for my l

相关标签:
1条回答
  • 2021-01-28 06:19

    Bring session_start() over $secure = SECURE; in sec_session_start(). You should not define and assign any vars before session_start().

    Edit: Actually try to bring it step by step to upper levels and to somehow juggle in conjunction with the other session functions. Use no headers before it.

    Edit: See here (point 1) the big problem caused by session_start() on second line, resolved very simple.

    0 讨论(0)
提交回复
热议问题