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:
parent
581bb65bbc
commit
6d96345499
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user