Author: chiragrpatel | Posted on: 7/19/2009 8:59:30 PM | Views : 330

Hi Guys,


I am using MemberShip provider for my site. I have also enable roleprovider. Everything work as it suppose to work. I have implemented logout functionality. I want to restrict secure page access once user click on logout (event user click on back button). But this doesn't work, if user log outs and then click on back button, they can see secure pages. I want to restric this access. Following is the code for logout. Can anybody please help me to figure it out?


Code:


Session.RemoveAll();
        Session.Clear();
        FormsAuthentication.SignOut();
        System.Web.HttpContext.Current.User = null;
        System.Web.HttpContext.Current.Session.Abandon(); // Mark session content to be deleted after request competition.
     &n ...

Go to the complete details ...