Disable back button
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS Server Security > Disable back button




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Disable back button  
Joe


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-18-04 04:51 AM

Hello,

For security purposes I would like to know how to disable
the back button in the browser and/or expire the page
similar to an online banking institution does.
e.g. when you hit the back button in the browser it gives
the warning that page has expired.

Thanks
Joe





[ Post a follow-up to this message ]



    Re: Disable back button  
Ken Schaefer


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-21-04 03:36 AM

The expiry is set using HTTP headers.
You can't disable the back button per se.

You can set the HTTP headers either using IIS Manager, or you can
dynamically set them using server-side code. For example in ASP you'd do:

<%
Response.ExpiresAbsolute = #1/1/1980#
Response.AddHeader "cache-control", "no-cache"
Response.AddHeader "pragma", "no-cache"
%>

Cheers
Ken

"Joe" <anonymous@discussions.microsoft.com> wrote in message
 news:1e22d01c454e3$b42b1c10$a401280a@phx
.gbl...
: Hello,
:
: For security purposes I would like to know how to disable
: the back button in the browser and/or expire the page
: similar to an online banking institution does.
: e.g. when you hit the back button in the browser it gives
: the warning that page has expired.
:
: Thanks
: Joe







[ Post a follow-up to this message ]



    Re: Disable back button  
Jerry Pisk


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-21-04 03:36 AM

Please take the time and read the page you're talking about. It does not
mean the page expired. It means that IE will not automatically re-submit
your previous request (because it was submitted with a POST method, sending
some data to the server).

Jerry

"Joe" <anonymous@discussions.microsoft.com> wrote in message
 news:1e22d01c454e3$b42b1c10$a401280a@phx
.gbl...
> Hello,
>
> For security purposes I would like to know how to disable
> the back button in the browser and/or expire the page
> similar to an online banking institution does.
> e.g. when you hit the back button in the browser it gives
> the warning that page has expired.
>
> Thanks
> Joe







[ Post a follow-up to this message ]



    Re: Disable back button  
Paul Lynch


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-21-04 03:36 AM

On Thu, 17 Jun 2004 20:24:03 -0700, "Joe"
<anonymous@discussions.microsoft.com> wrote:

>Hello,
>
>For security purposes I would like to know how to disable
>the back button in the browser and/or expire the page
>similar to an online banking institution does.
>e.g. when you hit the back button in the browser it gives
>the warning that page has expired.
>
>Thanks
>Joe

Joe,

Try this :

Disabling the Back Button
http://www.htmlgoodies.com/tutors/nobackbutton.html


Regards,

Paul Lynch
MCSE





[ Post a follow-up to this message ]



    Re: Disable back button  
Joe


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-21-04 03:36 AM

Thanks Ken for your reply.

Where can I learn to do this in the HTTP headers via IIS
manager? I am not too familiar with .asp just getting
started
>-----Original Message-----
>The expiry is set using HTTP headers.
>You can't disable the back button per se.
>
>You can set the HTTP headers either using IIS Manager, or
you can
>dynamically set them using server-side code. For example
in ASP you'd do:
>
><%
>Response.ExpiresAbsolute = #1/1/1980#
>Response.AddHeader "cache-control", "no-cache"
>Response.AddHeader "pragma", "no-cache"
>%>
>
>Cheers
>Ken
>
>"Joe" <anonymous@discussions.microsoft.com> wrote in
message
> news:1e22d01c454e3$b42b1c10$a401280a@phx
.gbl...
>: Hello,
>:
>: For security purposes I would like to know how to
disable
>: the back button in the browser and/or expire the page
>: similar to an online banking institution does.
>: e.g. when you hit the back button in the browser it
gives
>: the warning that page has expired.
>:
>: Thanks
>: Joe
>
>
>.
>





[ Post a follow-up to this message ]



    Re: Disable back button  
shaun.stewart@hsbeil.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-26-04 03:16 PM

Joe,

All you have to do is paste the following into the page_load event on each p
age in your ASP.Net app (assuming VB.Net)

Response.Cache.SetCacheability(HttpCacheability.NoCache)

This will force no cache on the client machine and thus if the back buttton 
is pressed, the page expired warning comes up.

regards

Shaun

 ****************************************
******************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET 
resources...





[ Post a follow-up to this message ]



    Re: Disable back button  
Jerry Pisk


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-26-04 03:16 PM

No it will not.

Jerry

"Shaun Stewart" <shaun.stewart@hsbeil.com> wrote in message
news:ubBw%23vRWEHA.2928@tk2msftngp13.phx.gbl...
> Joe,
>
> All you have to do is paste the following into the page_load event on each
> page in your ASP.Net app (assuming VB.Net)
>
> Response.Cache.SetCacheability(HttpCacheability.NoCache)
>
> This will force no cache on the client machine and thus if the back
> buttton is pressed, the page expired warning comes up.
>
> regards
>
> Shaun
>
>  ****************************************
******************************
> Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
> Comprehensive, categorised, searchable collection of links to ASP &
> ASP.NET resources...







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:24 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register