aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Timing out the Session on Clicking The Browser Back Button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Timing out the Session on Clicking The Browser Back Button" Watch "Timing out the Session on Clicking The Browser Back Button" New topic
Author

Timing out the Session on Clicking The Browser Back Button

Kunal Prakash Gandhi
Greenhorn

Joined: Apr 16, 2002
Posts: 11
Timing out the Session on Clicking The Browser Back Button
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Originally posted by kunal:
Timing out the Session on Clicking The Browser Back Button


Its a javascript and HTM related question, so please post it here(http://www.coderanch.com/forums/f-20/HTML-JavaScript) for better response


Spritle Software Blogs
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5782
Moving to HTML and Javascript forum...


Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61226
    
  66

1) Please fix your name -- it's not "legal" according to forum guidelines (and Eric will beat you up about it before much longer).
2) Even though this is not Jeopardy, please phrase your post in the form of a question that can be answered.
thanks,
bear


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
As Stated before you name doses not fit the guidelines of First and Last Name, Please use the My Profile link above tp fix it.
Second off I am guessing that you have a log out link and then the person uses the back button and they are logged in again and you do not want it.
This would be a server side problem with your session cookies being properly handled.
Eric
Pashi Soni
Greenhorn

Joined: Feb 27, 2003
Posts: 26
Before sending the data to the browser, write the following statements,
response.setHeader("Cache-Control","no-store");
response.setHeader("Pragma","no-cache");
response.setDateHeader ("Expires", 0);
This also helps in case, when user should not be able to see previous pages by clicking the Back button in the browser. (When very sensitive information is being displayed and someone else comes back tomachine and tries to see what data was entered)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Timing out the Session on Clicking The Browser Back Button