I have a session named session (loggedin) which verifies if a user has log in or not. My problem is when the user closes his browser and re opens it. He can access the page back without having to login again because the session still exist which is not ok.
How can i clear all the sessions when a user closes his browser? I already know how to clear a session when a user log out via the logout script by clicking on sign-out, but how can i do the same automatically when they close their browsers.