If you are using Forms-based authentication and cookies, you could just kill
the cookie.
public static void LogOutUser(cookieName)
{
if (HttpContext.Current != null)
{
FormsAuthentication.SignOut();
HttpContext.Current.Response.Cookies[cookieName].Expires =
DateTime.Now;
HttpContext.Current.Response.Cookies.Remove(cookie Name);
}
}
-or-
You could just abandon the session:
Session.Abandon();
Response.Redirect("default.aspx");
Jason Bentley
"Blake" <bl**********@NOSPAM.hotmail.com> wrote in message
news:up**************@TK2MSFTNGP10.phx.gbl...
I have no problems authenticating via AD and an ASP page. My question is
this - is there any way to 'reverse' the process?
What I mean is the authenticated state remains as long as the browser
window is open. Is there any .asp command I can provide that will revert the
browser session back to IUSR?
Thanks, as always.
Blake