Correction suppression de la session

This commit is contained in:
wpetit 2018-12-09 13:21:51 +01:00
parent b4e34ea817
commit 6595e8cb89

View File

@ -58,9 +58,7 @@ func (s *Session) Save(w http.ResponseWriter, r *http.Request) error {
// Delete deletes the session
func (s *Session) Delete(w http.ResponseWriter, r *http.Request) error {
s.sess.Options = &sessions.Options{
MaxAge: -1,
}
s.sess.Options.MaxAge = -1
return s.sess.Save(r, w)
}