Win a copy of Spring Boot in Practice this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Browsers and Their Back Buttons.

Ranch Hand
Posts: 483
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic