PHP Session Id changes between pages

前端 未结 10 2015
长发绾君心
长发绾君心 2020-12-07 01:07

I have a problem where i am losing the PHP session between 2 pages.

The session_start() is included in a file called session-inc.php into every page requiring a sess

10条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-07 01:45

    According to PHP documentation, session_start must be called before any output is sent back to the browser-- could this page have a rogue CR/LF, Unicode byte-order mark or similar that is causing output before you include('session-inc.php')?

提交回复
热议问题