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
This commit is contained in:
m_stodd
2015-09-18 02:13:12 -05:00
parent 91a1955454
commit 7abbfbcfcc

View File

@@ -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