File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
Don't get me started about those stupid light bulbs.
 
subject: session expiry
 
Similar Threads
Redirect user to current page after session expire when the user resumes
Servlets & Session Handling
how to use session
FORM based Declarative Authentication and Session
How to read the value selected in the selectOneMenu tag in the forwarded jsp page