Skip to content

Commit

Permalink
* Flag cookies as essential
Browse files Browse the repository at this point in the history
  • Loading branch information
cdwaddell committed Aug 16, 2018
1 parent 5fa5d38 commit cb667c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Infrastructure/MessageCookie.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public void Write(string id, Message<TModel> message)
data,
new CookieOptions
{
IsEssential = true,
HttpOnly = true,
Secure = Secure,
Path = CookiePath
Expand Down Expand Up @@ -133,6 +134,7 @@ private void ClearByCookieName(string name)
".",
new CookieOptions
{
IsEssential = true,
Expires = new DateTime(2000, 1, 1),
HttpOnly = true,
Secure = Secure,
Expand Down
1 change: 1 addition & 0 deletions src/Services/Default/DefaultUserSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ private CookieOptions CreateSessionIdCookieOptions()

var options = new CookieOptions
{
IsEssential = true,
HttpOnly = false,
Secure = secure,
Path = path,
Expand Down

0 comments on commit cb667c4

Please sign in to comment.