Posted on: 1/5/2014 6:17:34 PM | Views : 981

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 page after 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="Giris" LogoutText="Çikis" LogoutPageUrl="~/Login.aspx" LogoutAction="Redirect" OnLoggedOut="LoginStatus1_LoggedOut" /> protected void LoginStatus1_LoggedOut(object sender, EventArgs e) { FormsAuthentication.SignOut(); Response.Redirect("~/Login.aspx"); } Any idea?

Go to the complete details ...