![]() |
| How to prevent user from going back? |
|
Ennio
|
I would like to know how can I prevent the user from hitting the back button in the browser.
Is there a way? I have session var. that if the user hits back it will get him back to the last page he was, but when you hit back the page is cached on the computer so they can go back, is there a way to stop that? |
||||||||||||
|
|
|||||||||||||
|
Jason101
Forum Regular
|
Ennio, to the best of my knowledge, there is no way to change where a user goes when they hit the back button. If you're worried about caching, you can always use meta tags to tell the browser not to cache the page.
Or, if you REALLY didnt want them to use the back button, you can always open a popup window and load the page in it with no navigation bars, address bars, etc. That way they won't even have the option. |
||||||||||||
|
|
|||||||||||||
|
bobclingan
Forum Regular
|
You can do it using javascript, but it would only work in Internet Explorer. The popup window thing stops some users, but not those that know keyboard short-cuts or know to right-click.
|
||||||||||||
|
|
|||||||||||||
|
cfer
|
If possible, kill the sessions as soon as customer done a certain phase, and you don't want him to hit back to alter form/infor/data, etc ...
The way "log out" use this method. Kill sessions when users log out. Users can hit browser's back button but can back in automatically. Some pages may still show as they did show to users moment before but if users attempt to edit or type something, a log-in panel is prompt to ask users for log in first. cfer www.emikro.com |
||||||||||||
|
|
|||||||||||||
|
Ennio
|
thanks guys... I solved the problem by opening a pop-up and removing the menus.
|
||||||||||||
|
|
|||||||||||||
| How to prevent user from going back? |
|
||
|


