Windows authentication with Signout
From: Thomas Due (tdue_at_mail_remove_.dk)
Date: 11/03/04
- Next message: tshad: "Re: Find footer labels in DataGrid"
- Previous message: tshad: "Re: Find footer labels in DataGrid"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: tshad: "Re: Find footer labels in DataGrid"
- Previous message: tshad: "Re: Find footer labels in DataGrid"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|