Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Commit a9e40ac

Browse files
committed
Properly delete the correlation cookie. See Katana #230.
1 parent b10cda8 commit a9e40ac

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Microsoft.AspNet.Security/Infrastructure/AuthenticationHandler.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,12 @@ protected bool ValidateCorrelationId([NotNull] AuthenticationProperties properti
362362
return false;
363363
}
364364

365-
Response.Cookies.Delete(correlationKey);
365+
var cookieOptions = new CookieOptions
366+
{
367+
HttpOnly = true,
368+
Secure = Request.IsSecure
369+
};
370+
Response.Cookies.Delete(correlationKey, cookieOptions);
366371

367372
string correlationExtra;
368373
if (!properties.Dictionary.TryGetValue(

0 commit comments

Comments
 (0)