Commit 78991c81 authored by Lin Luxiang's avatar Lin Luxiang Committed by astaxie

make Maxage work

parent 348ff138
...@@ -73,7 +73,8 @@ func (st *CookieSessionStore) SessionRelease(w http.ResponseWriter) { ...@@ -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
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment