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
|
// Delete deletes the session
|
||||||
func (s *Session) Delete(w http.ResponseWriter, r *http.Request) error {
|
func (s *Session) Delete(w http.ResponseWriter, r *http.Request) error {
|
||||||
s.sess.Options = &sessions.Options{
|
s.sess.Options.MaxAge = -1
|
||||||
MaxAge: -1,
|
|
||||||
}
|
|
||||||
return s.sess.Save(r, w)
|
return s.sess.Save(r, w)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue