Friday, 15 August 2014

php - Why a system logout occurs after the cache is cleared even though the login records are stored in the session? -


When we log into the system, we are submitting some records in the session and the session has ended when logout is.

Now, when a user is logged into the system, how comes the user is automatically logged out if the user clears the cache from the browser?

We stored the logged data in session and at the time of the clearing cache, we are only clearing cookies and not sessions, so there are cookies that affect the originally logged in user data .

That's because your session ID is stored in your cookies.

If you do not delete it and will only clean other cookies, your system will not logout automatically


No comments:

Post a Comment