ASP has no association with the browser on that level (client level) you will need to run a script somehow with the means of a submission etc..
to end a session you would use
session.abandon
exactly what is it you mean by expire? session ends? _______________________________________________ { str = "sleep is good for you. sleep gives you the energy you need to function";
ptr = /sleep/gi;Nstr = str.replace(ptr,"coffee"alert(Nstr); }
_______________________________________________
for the best results to your questions: FAQ333-2924
Actually, the page does not used session and I just want to prevent the visitor press "back" button to see the content.
Basically, we have been done before but the code is missing. As I remember, it just set a few line in asp then can force the page expire by "back" button.
If you just want to disable the back button then this in the page where you dont want them to go back to will cause the browser to move back to the current page.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.