1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 02:17:05 +00:00

FIX: Session.Destroy trigger map concurrency write (#2225)

This commit is contained in:
zxfishhack
2023-10-24 20:12:14 +08:00
committed by GitHub
parent 6df3ada9c8
commit c886e3bd28

View File

@@ -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.