This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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 Java Interview Guide 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

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: 33134

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
I agree. Here's the link:
subject: ho wcan i do session handling
It's not a secret anymore!