PHP Session ID changing on every request

前端 未结 7 1918
终归单人心
终归单人心 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:19

    It might be caused by three characters (BOM (Byte Order Mark)) that are injected by certain programs (i.e. dreamweaver, notepad) before the marker, therefore thesession is in fact not initialized.

    If you have error_reporting enabled, you will see headers already sent..

    Check your file with a hex editor to see if your editor injected any characters.

提交回复
热议问题