delete session's cookie Expires
Showing
1 changed file
with
2 additions
and
2 deletions
| ... | @@ -66,11 +66,11 @@ func (manager *Manager) SessionStart(w http.ResponseWriter, r *http.Request) (se | ... | @@ -66,11 +66,11 @@ func (manager *Manager) SessionStart(w http.ResponseWriter, r *http.Request) (se |
| 66 | Path: "/", | 66 | Path: "/", |
| 67 | HttpOnly: true, | 67 | HttpOnly: true, |
| 68 | Secure: false} | 68 | Secure: false} |
| 69 | cookie.Expires = time.Now().Add(time.Duration(manager.maxlifetime) * time.Second) | 69 | //cookie.Expires = time.Now().Add(time.Duration(manager.maxlifetime) * time.Second) |
| 70 | http.SetCookie(w, &cookie) | 70 | http.SetCookie(w, &cookie) |
| 71 | r.AddCookie(&cookie) | 71 | r.AddCookie(&cookie) |
| 72 | } else { | 72 | } else { |
| 73 | cookie.Expires = time.Now().Add(time.Duration(manager.maxlifetime) * time.Second) | 73 | //cookie.Expires = time.Now().Add(time.Duration(manager.maxlifetime) * time.Second) |
| 74 | cookie.HttpOnly = true | 74 | cookie.HttpOnly = true |
| 75 | cookie.Path = "/" | 75 | cookie.Path = "/" |
| 76 | http.SetCookie(w, cookie) | 76 | http.SetCookie(w, cookie) | ... | ... |
-
Please register or sign in to post a comment