• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Browser back button issue after logout

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 don't always make ads but when I do they're tiny
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic