Re: asp and AD authentication
From: Jason Bentley (jbentley_at_urc.state.in.us.nostinkingspam)
Date: 03/05/04
- Previous message: Dominic Marsat: "Re: Hacker seems to know FTP usernames"
- In reply to: Blake: "asp and AD authentication"
- Next in thread: Blake: "Re: asp and AD authentication"
- Reply: Blake: "Re: asp and AD authentication"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 5 Mar 2004 12:18:25 -0500
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(cookieName);
}
}
-or-
You could just abandon the session:
Session.Abandon();
Response.Redirect("default.aspx");
Jason Bentley
"Blake" <blake_duffey@NOSPAM.hotmail.com> wrote in message
news:upWX7UsAEHA.3024@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
>
>
- Previous message: Dominic Marsat: "Re: Hacker seems to know FTP usernames"
- In reply to: Blake: "asp and AD authentication"
- Next in thread: Blake: "Re: asp and AD authentication"
- Reply: Blake: "Re: asp and AD authentication"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|