• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tracking browser back button

 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,


how to track the browser back button at the time of user click the back button. i saw the www.icicibank.com website...when ever you click the back button ..they take you some page(let it be logout.jsp) ..giving messsage that session expire... even if you click the back button it redirect to the same page(logout.jsp)


how can acheive this?.. please can anyone tell me the idea?
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you taken a look at the HTML/JavaScript that's used on that site?
 
Vinod K Singh
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can generate an unique key for each page and keep it in session, which can be validated with each request. This unique key will match only once for a page, if it does not match show the appropriate error message to the user. Also no-cache can be used for pages, so that browser does not cache them.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Vinod and ULF
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic