A session can outlive the permission it once granted. Validate its time policy when it reaches the server, using a trusted clock. At the expiration boundary the session has ended. An idle timeout adds a separate condition, and a not-before time can reject a session that is not valid yet.
Treat claims as typed data. A string that happens to contain digits is outside a numeric expiration contract. Missing claims must fail closed. The seeded clock makes the exact boundary repeatable on both datasets; it doesn't depend on your device's clock. The session objects are authentication fixtures, not signed tokens. A production implementation must validate the token or opaque session identifier before trusting these claims, then apply the account's revocation policy as well. Keep a current session available while rejecting each invalid time state.
Reject expired, idle, future-valid and malformed session state.