How to clear the session when closing a multi-tab browser (such as 360)?
弹下弹下
弹下弹下 2018-10-04 23:12:52
0
1
1550

How to clear the session when closing a multi-tab browser (such as 360)?

弹下弹下
弹下弹下

reply all(1)
Peter-Zhu

There are three levels of clearing sessions:

  1. Clear the session array: $_SESSION = [];

  2. Delete the corresponding session under temp/ File: session_destory();

  3. Delete the SESSID in the client/browser: Use: setcookie();

    Usually use the first method basically All can solve the problem.

  • reply Thank you, teacher!
    弹下弹下 author 2018-10-05 08:34:27
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!