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 ...