wood burning stoves 2.0*
The moose likes Struts and the fly likes Browser back button issue after logout Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Browser back button issue after logout" Watch "Browser back button issue after logout" New topic
Author

Browser back button issue after logout

Ankur Sharma
Greenhorn

Joined: Nov 30, 2007
Posts: 21
Hi,

I am using Struts 1.1(Dyna forms), Tomcat 5.0, JSTL.

lets say user is in some page and it comes through "userAction.do" (which i see in url bar)
then user logs out I am invalidating the session (let's it goes to logout.do)and then retrieves some info about the user (e.g. user id) and sending user to login page (welcome.do setting the userId as querystring).

So i see in url bar http://localhost:8080/myApp/welcome.do?userId=27

So far it's good.

Now if user hits browser back button, (since session is invalid) it takes user to error page and in url bar I see http://localhost:8080/myApp/userAction.do

I don't want to show error page to show. I want to take user back to login page.
How ever when I tried to debug, it does not go to any action and just takes user to error page.

Is there any way I can achieve this?
Any help appreciated.

Thanks,

Ankur
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Browser back button issue after logout
 
Similar Threads
Session Security
session invalid problem
How does servlet container choose tracking method
[Q][Web Security][Login Form doesn't display]
How to prevent the user from seeing the url ?