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..
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..