File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes session expiry Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "session expiry" Watch "session expiry" New topic

session expiry

sajeev JS

Joined: May 06, 2003
Posts: 6
Dear frinds
I am currently involved in a JSP project .An unsolvable scenarion is there.Whenever a user logs I am putting the details in session variables and checking it in every pages.
My doubt is this
"whenever a user clicks the back button of browser the session should get expired he should be prompted to login again."
i tried with some response headers.but not working
please help me.
Sajeev J.
suresh guru
Ranch Hand

Joined: Sep 07, 2002
Posts: 38
I think u can use getLastModified Header & invalidate the session based on comparing the time returned
arul murug

Joined: Aug 08, 2002
Posts: 24
This article may help in designing better control flow for your webapp.talks about Synchronizer Token pattern.
web page

SCJP2<br />SCWCD<br />UML & OOAD - IBM 486
I agree. Here's the link:
subject: session expiry
It's not a secret anymore!