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