Remove a Session in jsp or a servlet Page
by Vinoth[ Edit ] 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();