aspose file tools*
The moose likes Servlets and the fly likes ho wcan i do session handling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "ho wcan i do session handling" Watch "ho wcan i do session handling" New topic
Author

ho wcan i do session handling

abhinav singhal
Greenhorn

Joined: Jun 19, 2003
Posts: 29
please tell me how can i perform session handling along with back button problem.If i press back button my previous page gets generated which it should not.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31057
    
232

Abhinav,
A common approach is to put a token in the session on the first request. If the token is already there, the back button should not re-render the page.

Note that any approach you take only works for those pages going to the server. If the page is cached locally (like for GET requests), it will be displayed anyway.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ho wcan i do session handling