This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread 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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
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