1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-23 09:10:49 +00:00

Merge pull request #573 from linluxiang/master

Make the Maxage Config of cookie session work
This commit is contained in:
astaxie 2014-04-09 14:42:29 +08:00
commit a78162e9e4

View File

@ -73,7 +73,8 @@ func (st *CookieSessionStore) SessionRelease(w http.ResponseWriter) {
Value: url.QueryEscape(str),
Path: "/",
HttpOnly: true,
Secure: cookiepder.config.Secure}
Secure: cookiepder.config.Secure,
MaxAge: cookiepder.config.Maxage}
http.SetCookie(w, cookie)
return
}