This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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.