session invalidate in logout
I am having a logout link when clicked it redirects to the login.jsp page.
I have to invalidate the session when the logout link is clicked. (I cannot have a logout.jsp page to invalidate the session there).
How can I invalidate the session.
If I want to do it in the bean how would I be able to do that ??
Please provide the code for invalidating the session (any way except for using the logout as a different jsp page), so that if a user logs out , he would not be able to directly enter the jsp page.