Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Login and logout problem with sessions

 
Aditya Vasudeva
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a login page which takes in a username and password and forwards to a welcome.jsp if login is successful.

Once I logout, I invalidate my session. Unfortunately, if i click the back button, the welcome.jsp page comes back again. This is incorrect.

How do i stop the welcome.jsp from coming back. Instead, another page should load saying that the session has expired.

I went through a few forums in which i learnt that the browser cannot be controlled and that meta-tags have to be used to prevent the browser to cache data. I tried using the following tag to disable caching but it did not work:


Please help. This is very frustrating.
Thank You.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64683
86
IntelliJ IDE Java jQuery Mac Mac OS X
 
ou yang
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh,there are some problems on your code.you would send your coding to the web size so that we can find your errors.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic