From c886e3bd28d48884b4b874d7549796172f66be3d Mon Sep 17 00:00:00 2001 From: zxfishhack Date: Tue, 24 Oct 2023 20:12:14 +0800 Subject: [PATCH] FIX: Session.Destroy trigger map concurrency write (#2225) --- sessions/session.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sessions/session.go b/sessions/session.go index 4fa3e896..4b635de1 100644 --- a/sessions/session.go +++ b/sessions/session.go @@ -44,7 +44,7 @@ type ( // // Use the session's manager `Destroy(ctx)` in order to remove the cookie instead. func (s *Session) Destroy() { - s.provider.deleteSession(s) + s.provider.Destroy(s.sid) } // ID returns the session's ID.