This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "session expiry" Watch "session expiry" New topic
Author

session expiry

sajeev JS
Greenhorn

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.
regards
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
Greenhorn

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: session expiry