User-797751191 posted
Hi
How below code works . Secondly what DateTime.Now.AddMinutes(100) does,
FormsAuthenticationTicket tkt = new FormsAuthenticationTicket(1, LoginId.ToString(), DateTime.Now, DateTime.Now.AddMinutes(100), false, EmailId.ToString(), FormsAuthentication.FormsCookiePath);
string st = FormsAuthentication.Encrypt(tkt);
HttpCookie ck = new HttpCookie(FormsAuthentication.FormsCookieName, st);
Response.Cookies.Add(ck);
Response.Redirect("Test.aspx");
Thanks