I have an umbraco site and am using integrated windows authentication for the public site. All works ok in IE, Firefox, Safari. However, in goolgle chrome, the user keeps getting sent back to the logon page. Sometimes it works ok, others not. The code that logs the user in is listed below:
//some stuff to get the member name from the windows username, then:
FormsAuthentication.SetAuthCookie(username, true);
Member loginMember = Member.GetMemberFromLoginName(username);
if (loginMember != null)
{
Member.AddMemberToCache(loginMember, true, new TimeSpan(0, 20, 0));
}
FormsAuthentication.RedirectFromLoginPage(username, true);
As mentioned, this works ok in any browser other than chrome.. any ideas?