From 1bb876f2dfa4711858082cb888ddd5d986a3d95b Mon Sep 17 00:00:00 2001 From: Lin Luxiang Date: Tue, 8 Apr 2014 18:16:16 +0800 Subject: [PATCH] make Maxage work --- session/sess_cookie.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }