You can add following code to your every page
Response.CacheControl = "no-cache";
Response.Expires = -1;
Theoretically that prevents caching and if user clicks back button browser
forced to send a request to the server (which in turn should redirect user
to login page if Session has expired)
worked for me although I did not do extensive testing with all browsers that
out there.
George.
"Steve Kershaw" <st***********@yahoo.comwrote in message
news:11**********************@y80g2000hsf.googlegr oups.com...
On Apr 17, 3:25 pm, "Mark Rae" <m...@markNOSPAMrae.netwrote:
>"George Ter-Saakov" <gt-...@cardone.comwrote in message
news:eC**************@TK2MSFTNGP04.phx.gbl...
<script>
Change this to:
<script type="text/javascript">
window.setTimeout("TimeOut();", 15 minutes);
This will throw an exception because the second argument of the
window.setTimeout method requires an integer value denoting the number of
milliseconds to delay:
window.setTimeout("TimeOut();", 900000);
That worked! But I can still click the back button and return to the
previous page which is a problem here!!! If the timeout happends then
the current page must either be "killed" or the new page must not have
any reference BACK to the old page!
Thanks again for your help.
Steve