From 7abbfbcfcc0cbe73ae022e9df479c4103d8490cf Mon Sep 17 00:00:00 2001 From: m_stodd Date: Fri, 18 Sep 2015 02:13:12 -0500 Subject: [PATCH] Setting UMB_CONTEXT with Domain "FALSE" Running Umbraco on localhost, Chrome does not handle received 'Set Cookie's with no domain. "FALSE" works as noted here: http://stackoverflow.com/questions/1134290/cookies-on-localhost-with-explicit-domain --- src/Umbraco.Web/Security/Identity/GetUserSecondsMiddleWare.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web/Security/Identity/GetUserSecondsMiddleWare.cs b/src/Umbraco.Web/Security/Identity/GetUserSecondsMiddleWare.cs index d909ff76e2..f9b9fc0ca6 100644 --- a/src/Umbraco.Web/Security/Identity/GetUserSecondsMiddleWare.cs +++ b/src/Umbraco.Web/Security/Identity/GetUserSecondsMiddleWare.cs @@ -83,7 +83,7 @@ namespace Umbraco.Web.Security.Identity var cookieOptions = new CookieOptions { Path = "/", - Domain = _authOptions.CookieDomain, + Domain = _authOptions.CookieDomain ?? "FALSE", Expires = DateTime.Now.AddMinutes(_authOptions.LoginTimeoutMinutes), HttpOnly = true, Secure = _authOptions.CookieSecure == CookieSecureOption.Always