Remove a Session in jsp or a servlet Page

by Vinoth 2010-01-28 11:33:29

We need to invalidate session in jsp page when user hits logout page.
Its so easy to do this just remove the session variable and invalidate the session.
Here the code

session.removeAttribute("user");//removing session variable
session.invalidate();

Tagged in:

1537
like
0
dislike
0
mail
flag

You must LOGIN to add comments