From 0ddde6fa9fa84915ea707e58e3e1c1cdecc1b0dc Mon Sep 17 00:00:00 2001 From: astaxie Date: Tue, 29 Oct 2013 22:03:06 +0800 Subject: [PATCH] fix #252 --- session/session.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/session/session.go b/session/session.go index 4f50000d..1ffc7aaf 100644 --- a/session/session.go +++ b/session/session.go @@ -133,12 +133,12 @@ func (manager *Manager) SessionStart(w http.ResponseWriter, r *http.Request) (se r.AddCookie(cookie) } else { //cookie.Expires = time.Now().Add(time.Duration(manager.maxlifetime) * time.Second) - cookie.HttpOnly = true - cookie.Path = "/" - if manager.maxage >= 0 { - cookie.MaxAge = manager.maxage - http.SetCookie(w, cookie) - } + //cookie.HttpOnly = true + //cookie.Path = "/" + //if manager.maxage >= 0 { + // cookie.MaxAge = manager.maxage + // http.SetCookie(w, cookie) + //} sid, _ := url.QueryUnescape(cookie.Value) session, _ = manager.provider.SessionRead(sid) }