Hi,
Trying to redirect user to LoginPage after logout clicked.
In my page load i've control like that.
if (System.Web.HttpContext.Current.User.Identity.IsAuthenticated)
{...
...}else
//redirect to pageafter clicking logout button
if (System.Web.HttpContext.Current.User.Identity.IsAuthenticated)
control is TRUE
here is my LoginStatus
<asp:LoginStatus ID="LoginStatus1" runat="server" LoginText="Giriş" LogoutText="Çıkış" LogoutPageUrl="~/Login.aspx" LogoutAction="Redirect" OnLoggedOut="LoginStatus1_LoggedOut" />
protected void LoginStatus1_LoggedOut(object sender, EventArgs e)
{
FormsAuthentication.SignOut();
Response.Redirect("~/Login.aspx");
}Any idea?