Windows authentication with Signout

From: Thomas Due (tdue_at_mail_remove_.dk)
Date: 11/03/04


Date: Tue, 02 Nov 2004 23:05:05 -0800

I have a web application which uses Windows Authentication for user
authorization.
I would like to give the user a way of logging out, instead of just
closing the browser. Basically I want a Signout option, as used with
Forms Authentication and FormsAuthentication.Signout();

But how would I do that?

I have attempted the following:

GenericIdentity ident = new GenericIdentity("", "");
GenericPrincipal prin = new GenericPrincipal(ident, new string[]{});
HttpContext.Current.User = prin;

Session.Abandon();
Response.Cookies["ASP.NET_SessionID"].Value = null;
Response.Redirect("default.aspx");

Without luck.
What am I doing wrong?
Is what I want possible?
If yes, how?

-- 
Thomas Due
Posted with XanaNews version 1.16.4.6
"Supreme excellence consists in breaking the enemy's resistance without 
fighting."
-- Sun-Tzu


Relevant Pages

  • Re: AUTHORIZATION with WINDOWS AUTHENTICATION -- HELP!!
    ... > basic windows authentication for this .NET application ... There was no way for you to know it, but this* is a classic asp newsgroup. ... > how IIS is involved. ... > manipulated for the authorization process? ...
    (microsoft.public.inetserver.iis.security)
  • Re: Authentication as signature
    ... You can have your asp.net application use Windows authentication and ... impersonate the client's identity. ... use NTFS permissions to perform authorization. ...
    (microsoft.public.dotnet.framework.aspnet)
  • AUTHORIZATION with WINDOWS AUTHENTICATION -- HELP!!
    ... i want to implement authorization with windows authentication and don't ... windows authentication for this .NET application is already setup. ... the authentication process and my knowledge of how IIS is involved. ...
    (microsoft.public.sqlserver.security)
  • AUTHORIZATION with WINDOWS AUTHENTICATION -- HELP!!
    ... i want to implement authorization with windows authentication and don't ... windows authentication for this .NET application is already setup. ... the authentication process and my knowledge of how IIS is involved. ...
    (microsoft.public.inetserver.iis.security)
  • Re: Problem with authenticating users to my WSS site
    ... If that was the case then logging ... So it's perhaps not a WSS problem as such but something to do with access to ... This web server is on our Internet ... > So i'm not using Windows Authentication, ...
    (microsoft.public.sharepoint.windowsservices)