By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,939 Members | 1,600 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,939 IT Pros & Developers. It's quick & easy.

How to sign out using forms authentication?

P: n/a
I want to have a logout button on my page and tried putting
FormsAuthentication.SignOut() behind it but it doesn't work. Anyone have
any ideas??

Keith


Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
The call to SignOut can be followed by a Redirect to your logon.aspx page.

private void cmdSignOut_ServerClick(object sender, System.EventArgs e)
{
FormsAuthentication.SignOut();
Response.Redirect("logon.aspx", true);
}

--
Mike

Mike McIntyre
Visual Basic MVP
www.getdotnetcode.com
"Keith Selbee" <ks*****@nospam.neo.rr.com> wrote in message
news:u4**************@TK2MSFTNGP09.phx.gbl...
I want to have a logout button on my page and tried putting
FormsAuthentication.SignOut() behind it but it doesn't work. Anyone have
any ideas??

Keith

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.