diff --git a/src/Microsoft.AspNet.Security/Infrastructure/AuthenticationHandler.cs b/src/Microsoft.AspNet.Security/Infrastructure/AuthenticationHandler.cs index 7970caa3a2..f7e5adc342 100644 --- a/src/Microsoft.AspNet.Security/Infrastructure/AuthenticationHandler.cs +++ b/src/Microsoft.AspNet.Security/Infrastructure/AuthenticationHandler.cs @@ -362,7 +362,12 @@ namespace Microsoft.AspNet.Security.Infrastructure return false; } - Response.Cookies.Delete(correlationKey); + var cookieOptions = new CookieOptions + { + HttpOnly = true, + Secure = Request.IsSecure + }; + Response.Cookies.Delete(correlationKey, cookieOptions); string correlationExtra; if (!properties.Dictionary.TryGetValue(