Forums Register Login

tracking browser back button

+Pie Number of slices to send: Send
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?
+Pie Number of slices to send: Send
Have you taken a look at the HTML/JavaScript that's used on that site?
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
Thanks Vinod and ULF
when your children are suffering from your punishment, tell your them it will help them write good poetry when they are older. Like this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1492 times.
Similar Threads
Page expired error when browser back button is hit
login project
jsp logout problem
session.invalidate()
controlling browsers back button
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 06:11:47.