php - session reuse failed
怪我咯
怪我咯 2017-05-16 13:08:39
0
3
340

< br>session——id has a value and is the same as recorded by the browser
session_start returns a false solution

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(3)
Peter_Zhu

First use session_start() to open the session, then use session_id() and other session functions.

Supplement: This answer is not comprehensive, please read the comments

大家讲道理

session_start returns false to prove that the session call failed. It is recommended to turn on error_reporting (E_ALL) to see if there is an error. In addition, you can use session_status() to check the status of the current session

洪涛

Did you pass a value to $post['session_id']?
I tried it. If the session_id() function passes null, and then calls the session_start function, a warning error will be reported, which will not affect subsequent code execution..

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template