6d963454 by astaxie

fix session Secure

1 parent 581bb65b
...@@ -65,7 +65,7 @@ func (manager *Manager) SessionStart(w http.ResponseWriter, r *http.Request) (se ...@@ -65,7 +65,7 @@ func (manager *Manager) SessionStart(w http.ResponseWriter, r *http.Request) (se
65 Value: url.QueryEscape(sid), 65 Value: url.QueryEscape(sid),
66 Path: "/", 66 Path: "/",
67 HttpOnly: true, 67 HttpOnly: true,
68 Secure: true} 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)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!