MCPcopy
hub / github.com/gofiber/fiber / Reset

Method Reset

middleware/session/session.go:280–282  ·  view source on GitHub ↗

Reset generates a new session id, deletes the old one from storage, and resets the associated data. Returns: - error: An error if the reset fails. Usage: err := s.Reset()

()

Source from the content-addressed store, hash-verified

278//
279// err := s.Reset()
280func (s *Session) Reset() error {
281 return s.ResetWithContext(s.resolveContext())
282}
283
284// ResetWithContext generates a new session id, deletes the old one from storage, and resets the associated data,
285// using the provided context for cancellation and timeout control.

Callers

nothing calls this directly

Calls 2

ResetWithContextMethod · 0.95
resolveContextMethod · 0.95

Tested by

no test coverage detected