PHP creating new session with each reload

后端 未结 5 700
无人及你
无人及你 2021-01-18 06:02

For my website, session management mostly works ok. Sessions are created, saved and used later without problems.

But when the code is using session_start(), it alway

5条回答
  •  耶瑟儿~
    2021-01-18 07:02

    I think powtac is right in a way, but session_start(); should be your first operation you do, even before the header('Content-Type: text/html; charset=UTF-8');

提交回复
热议问题