| 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: 6590
|
|
|
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 - SCJP Mocks - SCJP 5 Mock exam (Word document ) - SCJP 5 Mock exam in Java.Inquisition format
|
 |
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: 56216
|
|
"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
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About 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: 56216
|
|
"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
|
 |
 |
|
|
subject: problem with Browser's back button
|
|
|