PHP Session ID changing on every request

前端 未结 7 1870
终归单人心
终归单人心 2020-12-06 17:46

I have just migrated my application from a local WAMP to the actual online server. This has caused trouble with the session ID not being saved as it appears.

  • I
相关标签:
7条回答
  • 2020-12-06 18:30

    session_start should be the first thing in your file, you can get the session id afterwards:

    session_start();
    $sId = session_id();
    
    0 讨论(0)
提交回复
热议问题