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

Method isAbsExpired

middleware/session/session.go:643–646  ·  view source on GitHub ↗

isAbsExpired returns true if the session is expired. If the session has an absolute expiration time set, this function will return true if the current time is after the absolute expiration time. Returns: - bool: True if the session is expired; otherwise, false.

()

Source from the content-addressed store, hash-verified

641// Returns:
642// - bool: True if the session is expired; otherwise, false.
643func (s *Session) isAbsExpired() bool {
644 absExpiration := s.absExpiration()
645 return !absExpiration.IsZero() && time.Now().After(absExpiration)
646}
647
648// setAbsExpiration sets the absolute session expiration time.
649//

Callers 2

getSessionMethod · 0.80
GetByIDMethod · 0.80

Calls 2

absExpirationMethod · 0.95
NowMethod · 0.45

Tested by

no test coverage detected