Membership - Log Out Programatically
- From: Mick Walker <Mick.Walker@xxxxxxxxxxx>
- Date: Tue, 17 Jul 2007 14:41:54 +0100
Hi All,
I have a situation where I am using a login control to log a user in to my web app.
Under the LoginButton_Click handler of the login control, I retrive some custom user information from the database.
Based on this information, the situation may arise where I want to log the user out automatically even if a valid username/password has been entered in the login control.
I have tried using:
Session.Abandon()
FormsAuthentication.SignOut()
and this doesnt seem to work, does anyone have any ideas how I can acomplish a logout via code?
Regards
Mick
.
- Follow-Ups:
- Re: Membership - Log Out Programatically
- From: Mick Walker
- Re: Membership - Log Out Programatically
- Prev by Date: Re: Browser Incompatibility
- Next by Date: Re: Membership - Log Out Programatically
- Previous by thread: Emailing Code works fine in debug mode, BUT NOT when uploaded
- Next by thread: Re: Membership - Log Out Programatically
- Index(es):