Last post Feb 10, 2011 07:44 AM by chetan.warade
Feb 07, 2011 11:17 AM|Mohammed Askar|LINK
This questiom may be simple, but im new to this concept.
My question is I have registration form I want to expire seesion on successfull registration when the user click browser back button
How to achive this ?
Feb 07, 2011 12:31 PM|RaviSM|LINK
Have you tried this
I hope this will help you in you scenario.
Please let me know If don't
Feb 08, 2011 12:38 AM|sovitmittal|LINK
Feb 08, 2011 12:46 AM|bala.sekhar|LINK
The "Back" browser button (or for that matter any other browser button) cannot be actually disabled by a web application as the security context will not allow this
What we can do is make sure that browser does not cache the web pages (Thus "Back" "Forward" buttons is greyed out), and this can be easily done by expiring the Response. The code for this has slightly changed in ASP.NET 2.0 (there is a new HttpCachePolicy
* Code disables caching by browser. Hence hitting the back browser button
* causes the Page_Load event to fire again.
Response.Cache.SetExpires(DateTime.Now); //or a date much earlier than current time
Feb 10, 2011 07:44 AM|chetan.warade|LINK
You can use after registration is done