Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in Sessions  RSS feed

 
Swathi Prakash
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using tomcat 5.0.i developed a simple application in JSp.

i create login page with username and password.then every page i displayed

the User name by creating Session.


my problem is i have logout option. if i click the

logout i invalidated the session. if i press the back button in browser the

previous pages r coming. my application is financial application. so i want

to keep those things secure. i want to do if i press back button ,i want to

redirect error page. plz help me

THANK U -----ADVANCE
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may want to explore the "Post, Redirect, Get" pattern, coined by our own, prestigious, Bear Bibeault the other day.

http://www.coderanch.com/t/359668/Servlets/java/display-data-servlet-jsp-page
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, the naming credit goes to Stan James. But I'll take the "prestigious" part!
 
Shibu Mathew
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please refer the site www.developer.irt.org/script/506.htm


//Specify how to disable the BACK button of the browser
 
Shibu Mathew
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not 506.htm, the actual one is 311.htm
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!