This my code
if(request.getParameter("btnlogOut") != null)
{
session.invalidate();
}
Its not clear the session….
Thanks
Frank
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.
It does.
Most likely you’re sending a forward instead of a redirect to the result page. This way the old session variables are still accessible in EL scope. Make sure that you’re sending a redirect after the invalidate.
This way the browser will be instructed to send a brand new HTTP request on the given URL without the session cookie and hence the associated servlet request-response will get a brand new
HttpSessionobject instance.