1bb876f2 by Lin Luxiang

make Maxage work

1 parent 82ca85dc
...@@ -73,7 +73,8 @@ func (st *CookieSessionStore) SessionRelease(w http.ResponseWriter) { ...@@ -73,7 +73,8 @@ func (st *CookieSessionStore) SessionRelease(w http.ResponseWriter) {
73 Value: url.QueryEscape(str), 73 Value: url.QueryEscape(str),
74 Path: "/", 74 Path: "/",
75 HttpOnly: true, 75 HttpOnly: true,
76 Secure: cookiepder.config.Secure} 76 Secure: cookiepder.config.Secure,
77 MaxAge: cookiepder.config.Maxage}
77 http.SetCookie(w, cookie) 78 http.SetCookie(w, cookie)
78 return 79 return
79 } 80 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!