|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
i want to disable the back and forward utility in the browser when once user logged out or come to the home page
|
|
#2
|
|||
|
|||
|
You cannot disable back/forward button.
What might work is the following: 1. If using IE 5.5, IE 6, try, onback=history.forward(); Add to every page the following script: <script> <!-- javascript:window.history.forward(1); --> </script> This way you make sure the user cannot go back with the 'back' button. Unless he/she has disabled javascript.... 2. A few other methods are outlined here: http://developer.irt.org/script/311.htm welcome to devshed, please use more appropriate subject lines, ASP for a subject line is about as terrible as it gets for an asp forum, thanks. |
|
#3
|
||||
|
||||
|
If you want to prevent the user from hitting "back" after logging out and returning to the logged in area, you might try preventing the page from being cached, with
Code:
<% Response.CacheControl = "no-cache" %> <% Response.AddHeader "Pragma", "no-cache" %> <% Response.Expires = -1 %> |
|
#4
|
|||
|
|||
|
you could try having your entire website come up in a new window with no Microsoft IE toolbar at the top....and then you could make your own back and foward buttons and put them on your pages when you need them only.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > asp |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|