How to clear the session when closing a multi-tab browser (such as 360)?
There are three levels of clearing sessions:
Clear the session array: $_SESSION = [];
Delete the corresponding session under temp/ File: session_destory();
Delete the SESSID in the client/browser: Use: setcookie();
Usually use the first method basically All can solve the problem.
There are three levels of clearing sessions:
Clear the session array: $_SESSION = [];
Delete the corresponding session under temp/ File: session_destory();
Delete the SESSID in the client/browser: Use: setcookie();
Usually use the first method basically All can solve the problem.