1
0
mirror of https://github.com/kataras/iris.git synced 2026-03-07 17:05:58 +00:00

fix when destroy session can't remove cookie in subdomain

Former-commit-id: 6ad05d62e03233c61a54f11c36867041ecba3f4d
This commit is contained in:
Chengyumeng
2018-04-04 15:25:00 +08:00
parent 989cb3f045
commit 8f32e991e8
2 changed files with 41 additions and 9 deletions

View File

@@ -147,7 +147,7 @@ func (s *Sessions) Destroy(ctx context.Context) {
if cookieValue == "" { // nothing to destroy
return
}
RemoveCookie(ctx, s.config.Cookie, s.config.AllowReclaim)
RemoveCookie(ctx, s.config)
s.provider.Destroy(cookieValue)
}