search

Home  >  Q&A  >  body text

php - session reuse failed

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

怪我咯怪我咯2885 days ago357

reply all(3)I'll reply

  • 天蓬老师

    天蓬老师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

    reply
    0
  • 大家讲道理

    大家讲道理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

    reply
    0
  • PHP中文网

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

    reply
    0
  • Cancelreply