K
karunakar
Hi All
I dont want to expire the applicatoion
Once login the application i dont want to expire the application
Presently iam doing using cookies this is not working fine
Please help me out
I was doing like that
System.Web.HttpCookie c = new System.Web.HttpCookie("EXPIREANONYMOUSUSER",
"EXPIRE");
c.Expires = DateTime.Now.AddMonths(6);
Response.Cookies.Add(c);
here "c.Expire" is expiration time
FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(
1,
txtUserName.Text,
System.DateTime.Now,
c.Expires,
// This is my exprition duration
false,
txtPassword.Text,
FormsAuthentication.FormsCookiePath);
Regards
Karunakara Rao
I dont want to expire the applicatoion
Once login the application i dont want to expire the application
Presently iam doing using cookies this is not working fine
Please help me out
I was doing like that
System.Web.HttpCookie c = new System.Web.HttpCookie("EXPIREANONYMOUSUSER",
"EXPIRE");
c.Expires = DateTime.Now.AddMonths(6);
Response.Cookies.Add(c);
here "c.Expire" is expiration time
FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(
1,
txtUserName.Text,
System.DateTime.Now,
c.Expires,
// This is my exprition duration
false,
txtPassword.Text,
FormsAuthentication.FormsCookiePath);
Regards
Karunakara Rao