Destroy deletes the session from storage and expires the session cookie. Returns: - error: An error if the destruction fails. Usage: err := s.Destroy()
()
| 189 | // |
| 190 | // err := s.Destroy() |
| 191 | func (s *Session) Destroy() error { |
| 192 | return s.DestroyWithContext(s.resolveContext()) |
| 193 | } |
| 194 | |
| 195 | // DestroyWithContext deletes the session from storage and expires the session cookie, |
| 196 | // using the provided context for cancellation and timeout control. |