Posted on: 10/5/2012 12:41:08 AM | Views : 258

Hi,
My application using FormAuthentication as per below
FormsAuthenticationTicket authTicket = new FormsAuthenticationTicket(1, username, DateTime.Now, DateTime.Now.AddMinutes(60), true, ""); string encryptedTicket = FormsAuthentication.Encrypt(authTicket); HttpCookie authCookieLSS = new HttpCookie(FormsAuthentication.FormsCookieName, encryptedTicket); HttpContext.Current.Response.Cookies.Add(authCookieLSS); HttpContext.Current.Response.Redirect(FormsAuthentication.GetRedirectUrl(username, false)); In Web.Config
<authentication mode="Forms"> <forms loginUrl="Login.aspx" defaultUrl="Default.aspx" protection="All" slidingExpiration="true" name="authCookieLSS" timeout="60" path="/"/> </authentication> <authorization> <deny users="?"/> <allow users="*"/> </authorization> < ...

Go to the complete details ...