Invalidating session in servlet
What I need to do is My jsp page should check if the current session is still valid & if it is then invalidate the session & redirect to another page outside the application.
i have written code to logout the user session in my project.
but its not if i click back option, the session is still alive. my code is Java code: public void logout() After logout, if I click back , the session is still alive.
We have already seen invalidate() method in session implicit object tutorial. Here we will see how to validate/invalidate a session.
interface, that it is being bound into or unbound from the session.
What I am trying to do is release the lock when the ...
Lets understand this with the help of an example: In the below example we have three jsp pages.
Output: while opening display page, all the attributes are getting displayed on client (browser).
Returns null if the request does not have a session associated with it.
Binds the specified object into the session with the given name.