fix session Secure
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -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) | ... | ... |
-
Please register or sign in to post a comment