How to clear the session ?
- Gnaniyar Zubair
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A session, in web terms, is a bunch of data stored on the server that is associated with an identifier that is stored on the client (usually, but not always, in a cookie) and sent back to the server with every request.
It is a very generic term, and how you clear it depends on the specific implementation of the session concept.
From JavaScript, short of using Ajax, the most you are likely to be able to achieve is to wipe out the token on the client so it can’t access the session any more (the session will then expire as normal – since all session implementations have to have an expiry time to stop them hanging around forever).