File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes ho wcan i do session handling Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply 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
internet detective
Marshal

Joined: May 26, 2003
Posts: 26184
    
  66

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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: ho wcan i do session handling
 
Similar Threads
Logout Problem - Session related
Sessions
how to expire page and clear history if user click back button from browser in jsp
Timing out the Session on Clicking The Browser Back Button
ho wcan i do session handling