How do I kill a PHP session?

后端 未结 2 1808
渐次进展
渐次进展 2020-12-12 01:22

I am writing a social networking site, and I am trying to figure out PHP sessions. At the top of the login page, I call session_destroy(), and I call session_start() at the

2条回答
  •  佛祖请我去吃肉
    2020-12-12 01:43

    The best way is by following the manual. Here is sample code that erases any session variables, the session cookie and then the session file itself:

提交回复
热议问题