Block the history

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
What can I do to block or erase the history of the Internet Explorer when a
user navigates in my ASP .NET 1.1 application?, I don't want that the user be
able to return to a previous page.

thnks.
 
Ok, but how can I turn off cacheing? Actually, I'm not using cacheing for
those pages.
--
__________________
Luis Graillet Ramos


DownWithBugs said:
Turn off cacheing for those pages.
 
Hi,
What can I do to block or erase the history of the Internet Explorer when a
user navigates in my ASP .NET 1.1 application?, I don't want that the user be
able to return to a previous page.

thnks.

What we have done (in 1 app): put some javascript in every page:
window.history.forward(1);

if there is nothing to forward to, this will not complain. However, if
the user used any form of "back button", he would immediatly be bounced
forward.

Hans Kesting
 
As =?Utf-8?B?Z3JhbGV0?= once said in
microsoft.public.dotnet.framework.aspnet
Ok, but how can I turn off cacheing? Actually, I'm not using cacheing
for those pages.

He means browser cacheing.

I use this in page load:

response.Expires = 0
response.Cache.SetNoStore()
response.AppendHeader("Pragma", "no-cache")

Also, I maintain session variables that hold the valid
navigate_to page, the current_page, and an allow_to_navigate
flag. When a page is loaded, I check if they are allowed
to navigate, and if so, if this is the page they are allowed
to naviage to. If not I redirect the user back to the "current"
page.

This scheme ensures that the user can not get to a page out
of sequence, or directly by typing a url, or pressing the back
button.

kpg
 
Back
Top