1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 12:30:54 +00:00

fix session Secure

This commit is contained in:
astaxie 2013-05-08 11:01:32 +08:00
parent 581bb65bbc
commit 6d96345499

View File

@ -65,7 +65,7 @@ func (manager *Manager) SessionStart(w http.ResponseWriter, r *http.Request) (se
Value: url.QueryEscape(sid), Value: url.QueryEscape(sid),
Path: "/", Path: "/",
HttpOnly: true, HttpOnly: true,
Secure: 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) http.SetCookie(w, &cookie)
r.AddCookie(&cookie) r.AddCookie(&cookie)