G
Guest
Easy to describe that problem: The cookies will be deleted after the user
closes the browser, but I have set persistance to true. Code:
------
TicketForPremium = new FormsAuthenticationTicket(1, UserID, DateTime.Now,
DateTime.Now.AddHours(10), true, "1");
TicketForPremiumCrypted = FormsAuthentication.Encrypt(TicketForPremium);
Response.Cookies.Add(new HttpCookie(FormsAuthentication.FormsCookieName,
TicketForPremiumCrypted));
-------
I've tested local (win2000, IIS 5) and on a server (win2003, IIS 6) and
with different browsers (IE, firefox, opera) and the results are always the
same.
I am using .net 1.1
closes the browser, but I have set persistance to true. Code:
------
TicketForPremium = new FormsAuthenticationTicket(1, UserID, DateTime.Now,
DateTime.Now.AddHours(10), true, "1");
TicketForPremiumCrypted = FormsAuthentication.Encrypt(TicketForPremium);
Response.Cookies.Add(new HttpCookie(FormsAuthentication.FormsCookieName,
TicketForPremiumCrypted));
-------
I've tested local (win2000, IIS 5) and on a server (win2003, IIS 6) and
with different browsers (IE, firefox, opera) and the results are always the
same.
I am using .net 1.1