Author: nick5454 | Posted on: 6/18/2010 12:46:44 PM | Views : 326

I have a custom  MembershipProvider and a custom RoleProvider.
My user called "UserA" fails when entering website and I get an access denied.
I have a that will impersonate a user so I can enter the site. I just keep the users name in the cache and My RoleProvider replaces the current user with this name.  That works fine.
 
I have an asp:LoginStatus control for logging out. When clicked it fires the following events:
protected void loginStatus_LoggingOut(object sender, LoginCancelEventArgs e) { HttpContext.Current.Cache.Remove("ImpersonateUser"); } protected void loginStatus_LoggedOut(object sender, EventArgs e) { Session.Abandon(); Response.Redirect("~/LoginForm.aspx"); } All of these statements get fired. In fact the Response.Redirect gets f ...

Go to the complete details ...