1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-12 10:50:39 +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

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)
}