diff --git a/session/sess_cookie.go b/session/sess_cookie.go index 54acba31..0fe7b093 100644 --- a/session/sess_cookie.go +++ b/session/sess_cookie.go @@ -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 }