make Maxage work
Showing
1 changed file
with
2 additions
and
1 deletions
| ... | @@ -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 | } | ... | ... |
-
Please register or sign in to post a comment