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.
()
| 641 | // Returns: |
| 642 | // - bool: True if the session is expired; otherwise, false. |
| 643 | func (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 | // |
no test coverage detected