Meaningless Drivel is fun!*
The moose likes JSP and the fly likes problem with Browser's back button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "problem with Browser Watch "problem with Browser New topic
Author

problem with Browser's back button

Rahul verma
Greenhorn

Joined: May 15, 2007
Posts: 7
In my application after logOff, if i click back button of browser the previous pages are displayed even though the session is expired,the user can see the pages but he can't do any action because first i check for session, if session is not there i redirect the user to login page. but i dont want the pages to be displayed when the user logsoff and then clicks back button of browser(firefox).
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

You could instruct the browser not to cache the pages. You need to set the appropriate headers in the servlet. Out of the top of my head it is something like "pragma:No cache".


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

"Moin",
Welcome to JavaRanch!

We're pleased to have you here with us in the FSP forum, but there
are a few rules that need to be followed, and one is that proper names are
required. Please take a look at the
JavaRanch Naming Policy and
adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

You can change it here

Welcome to JavaRanch!


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60794
    
  65

"Moin.ieg",

Thanks for changing your display name, but it is still not acceptable. Please read the following quote from Ben's message again:

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.


thanks
bear
JavaRanch Sheriff


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Rahul verma
Greenhorn

Joined: May 15, 2007
Posts: 7
I have tried but it is not working, any other solution please if possible
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60794
    
  65

"Moin.ieg", you have previously been warned on multiple occasions regarding adjusting your display name to meet JavaRanch standards. This is not optional, and this is your final warning. Adjust your display name to comply with the required standards prior to your next post.

Failure to comply will result in the removal of your account.

bear
JavaRanch Sheriff
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with Browser's back button
 
Similar Threads
PROBLEM IN SESSION,
How to track browser back button action in JSP pages
Back button in browser- Expire session
Session Problem
Problem in Sessions