search

Home  >  Q&A  >  body text

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

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

弹下弹下弹下弹下2243 days ago1600

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2018-10-05 08:31:53

    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
    0
  • 弹下弹下

    Thank you, teacher!

    弹下弹下 · 2018-10-05 08:34:27
  • Cancelreply