mirror of
https://github.com/kataras/iris.git
synced 2025-02-02 15:30:36 +01:00
FIX: Session.Destroy trigger map concurrency write (#2225)
This commit is contained in:
parent
6df3ada9c8
commit
c886e3bd28
|
@ -44,7 +44,7 @@ type (
|
||||||
//
|
//
|
||||||
// Use the session's manager `Destroy(ctx)` in order to remove the cookie instead.
|
// Use the session's manager `Destroy(ctx)` in order to remove the cookie instead.
|
||||||
func (s *Session) Destroy() {
|
func (s *Session) Destroy() {
|
||||||
s.provider.deleteSession(s)
|
s.provider.Destroy(s.sid)
|
||||||
}
|
}
|
||||||
|
|
||||||
// ID returns the session's ID.
|
// ID returns the session's ID.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user