Hi,
I had the same problem so I added the following to the SiteHeader.ascx page to solve it:
private void InitializeComponent()
{
this.SignOut.Click += new EventHandler(SignOut_Click);
this.Load += new System.EventHandler(this.Page_Load);
}
private void SignOut_Click(object sender, EventArgs e)
{
FormsAuthentication.SignOut();
Context.Session.Clear();
Response.Redirect( "/Default.aspx" );
}
Plus SignOut.Visible = true; to within the if (Context.User.Identity.IsAuthenticated) of the Page_Load method.
I hope this helps.
Cheers,
JD
|