Skip to main content

MAX_TTL_HOURS

Constant MAX_TTL_HOURS 

Source
pub const MAX_TTL_HOURS: u64 = _ /* 8_760u64 */;
Expand description

A year. A login that outlives the process is pointless — sessions live in memory — and a typo like session_ttl_hours = 999999 should not mint a cookie that never expires.