1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-25 21:10:50 +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),
Path: "/",
HttpOnly: true,
Secure: true}
Secure: false}
cookie.Expires = time.Now().Add(time.Duration(manager.maxlifetime) * time.Second)
http.SetCookie(w, &cookie)
r.AddCookie(&cookie)