Reply to topic
How to prevent user from going back?
Ennio


Joined: 17 Nov 2006
Posts: 98
Location: Scotch Plains, NJ
Reply with quote
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

Joined: 14 Mar 2006
Posts: 547
Location: Harrisburg, PA
Reply with quote
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

Joined: 16 Sep 2004
Posts: 271
Location: Abingdon, MD
Reply with quote
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


Joined: 29 Oct 2006
Posts: 16
Reply with quote
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


Joined: 17 Nov 2006
Posts: 98
Location: Scotch Plains, NJ
Reply with quote
thanks guys... I solved the problem by opening a pop-up and removing the menus.

Very Happy
How to prevent user from going back?
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic