Merge pull request #3868 from holtyuzhuyanbo/fix_session_destory

fix: session destory
This commit is contained in:
astaxie 2020-02-07 11:49:54 +08:00 committed by GitHub
commit e5e4a3bea7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -270,7 +270,8 @@ func (manager *Manager) SessionDestroy(w http.ResponseWriter, r *http.Request) {
Path: "/",
HttpOnly: !manager.config.DisableHTTPOnly,
Expires: expiration,
MaxAge: -1}
MaxAge: -1,
Domain: manager.config.Domain}
http.SetCookie(w, cookie)
}