mirror of
https://github.com/astaxie/beego.git
synced 2024-11-10 21:30:55 +00:00
make Maxage work
This commit is contained in:
parent
82ca85dc65
commit
1bb876f2df
@ -73,7 +73,8 @@ func (st *CookieSessionStore) SessionRelease(w http.ResponseWriter) {
|
|||||||
Value: url.QueryEscape(str),
|
Value: url.QueryEscape(str),
|
||||||
Path: "/",
|
Path: "/",
|
||||||
HttpOnly: true,
|
HttpOnly: true,
|
||||||
Secure: cookiepder.config.Secure}
|
Secure: cookiepder.config.Secure,
|
||||||
|
MaxAge: cookiepder.config.Maxage}
|
||||||
http.SetCookie(w, cookie)
|
http.SetCookie(w, cookie)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user