mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 07:10:55 +00:00
Merge pull request #3868 from holtyuzhuyanbo/fix_session_destory
fix: session destory
This commit is contained in:
commit
e5e4a3bea7
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user