why is php generating the same session ids everytime in test environment (WAMP)?

后端 未结 7 1377
礼貌的吻别
礼貌的吻别 2020-12-10 20:53

i\'ve configured wamp in my system, and am doing the development cum testing in this local environment. i was working on the logout functionality, and happened to notice tha

7条回答
  •  一个人的身影
    2020-12-10 21:44

    session_unset() and session_destroy() do not delete the session cookie. You have to manually unset it with a setcookie() call.

    session_unset is the converse of session_register(), and session_destroy simply cleans out $_SESSION without affecting the cookie.

提交回复
热议问题