How to clear the session when closing a multi-tab browser (such as 360)?
天蓬老师2018-10-05 08:31:53
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.