Correction suppression de la session
This commit is contained in:
parent
b4e34ea817
commit
6595e8cb89
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue