Skip to content

Commit

Permalink
Fix #20 Add cookie domain in UserSession.Logout()
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarmil committed Feb 23, 2018
1 parent f77025e commit 94d1d38
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions WebSharper.Owin/Owin.Sitelets.fs
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,13 @@ module private Internal =

member this.Logout() =
async {
ctx.Response.Cookies.Append(FormsAuthentication.FormsCookieName, "",
CookieOptions(Expires = Nullable(DateTime.Now.AddDays(-1.))))
ctx.Response.Cookies.Append(
FormsAuthentication.FormsCookieName, "",
CookieOptions(
Expires = Nullable(DateTime.Now.AddDays(-1.)),
Domain = FormsAuthentication.CookieDomain
)
)
return refresh null
}

Expand Down

0 comments on commit 94d1d38

Please sign in to comment.