< br>session——id has a value and is the same as recorded by the browser
session_start returns a false solution
天蓬老师2017-05-16 13:10:39
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
大家讲道理2017-05-16 13:10:39
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
PHP中文网2017-05-16 13:10:39
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..