From aa9cb6d05275586e794a77167ad0b2452362d1fc Mon Sep 17 00:00:00 2001 From: astaxie Date: Tue, 25 Jun 2013 23:08:47 +0800 Subject: [PATCH] delete session's cookie Expires --- session/session.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/session/session.go b/session/session.go index 52f6a88b..dde6b27f 100644 --- a/session/session.go +++ b/session/session.go @@ -66,11 +66,11 @@ func (manager *Manager) SessionStart(w http.ResponseWriter, r *http.Request) (se Path: "/", HttpOnly: true, Secure: false} - cookie.Expires = time.Now().Add(time.Duration(manager.maxlifetime) * time.Second) + //cookie.Expires = time.Now().Add(time.Duration(manager.maxlifetime) * time.Second) http.SetCookie(w, &cookie) r.AddCookie(&cookie) } else { - cookie.Expires = time.Now().Add(time.Duration(manager.maxlifetime) * time.Second) + //cookie.Expires = time.Now().Add(time.Duration(manager.maxlifetime) * time.Second) cookie.HttpOnly = true cookie.Path = "/" http.SetCookie(w, cookie)