GeeCON Prague 2014*
The moose likes Java in General and the fly likes Browsers and Their Back Buttons. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "Browsers and Their Back Buttons." Watch "Browsers and Their Back Buttons." New topic
Author

Browsers and Their Back Buttons.

Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 477
Hi Everyone,

This is a general question about how Browsers handle their back button. Don't know where to post this. Please feel free to move it to an appropriate section, if necessary. This is a general question mostly and something which is causing an issue on the application which I am working on. I am working on an application which is based on Struts. The authentication for the users is done by another application. We just post the used id and password along with some other parameters to that application, it authenticates the user and sends the information saying if the user is authenticated or not. Any incorrect username/password errors are shown to the users on the login page.

Now the issue is... After a user logs in and then after doing whatever he came in to, when he clicks logout his session is logged out. But when the user clicks on the browser's back button the user is redirected to the login page (the login page and the logout page is the same JSP). This is the normal case, this happens for all browsers, except Chrome. In case of Chrome, after clicking the back button i see that the login page is showing an error as if the user entered an incorrect username password combination. So i am guessing that Chrome somehow saves the forms or something and posts it back to the third party application. I am clueless about this one! Because it is so browser specific.

Any tips and advice would be welcomed.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Browsers and Their Back Buttons.