1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 19:00:55 +00:00

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

View File

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