0ddde6fa by astaxie

fix #252

1 parent 5d54acba
...@@ -133,12 +133,12 @@ func (manager *Manager) SessionStart(w http.ResponseWriter, r *http.Request) (se ...@@ -133,12 +133,12 @@ func (manager *Manager) SessionStart(w http.ResponseWriter, r *http.Request) (se
133 r.AddCookie(cookie) 133 r.AddCookie(cookie)
134 } else { 134 } else {
135 //cookie.Expires = time.Now().Add(time.Duration(manager.maxlifetime) * time.Second) 135 //cookie.Expires = time.Now().Add(time.Duration(manager.maxlifetime) * time.Second)
136 cookie.HttpOnly = true 136 //cookie.HttpOnly = true
137 cookie.Path = "/" 137 //cookie.Path = "/"
138 if manager.maxage >= 0 { 138 //if manager.maxage >= 0 {
139 cookie.MaxAge = manager.maxage 139 // cookie.MaxAge = manager.maxage
140 http.SetCookie(w, cookie) 140 // http.SetCookie(w, cookie)
141 } 141 //}
142 sid, _ := url.QueryUnescape(cookie.Value) 142 sid, _ := url.QueryUnescape(cookie.Value)
143 session, _ = manager.provider.SessionRead(sid) 143 session, _ = manager.provider.SessionRead(sid)
144 } 144 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!