From 78991c81ab530e01e1ec6edb06dc99013688c8d6 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 }