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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "ho wcan i do session handling" Watch "ho wcan i do session handling" New topic

ho wcan i do session handling

abhinav singhal

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

Joined: May 26, 2003
Posts: 32818

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.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Don't get me started about those stupid light bulbs.
subject: ho wcan i do session handling
It's not a secret anymore!