docs(api): the session cookie comment says sessions expire server-side, because they do (#8108)
release / web (push) Successful in 1m26s
release / go (push) Successful in 1m56s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 4m29s
release / android (push) Successful in 4m29s
release / Build signed APK (push) Successful in 5m10s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 15s
release / Verify release artifacts (tag releases only) (push) Skipped

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-27 00:30:38 -05:00
co-authored by Claude Opus 5.5
parent 40c53c8b98
commit 02cecc4eb7
+4 -3
View File
@@ -14,9 +14,10 @@ import (
"git.fabledsword.com/bvandeusen/minstrel/internal/db/dbq"
)
// sessionCookieMaxAge is the cookie lifetime. Sessions don't auto-expire
// server-side yet (future work); the cookie still caps browser-side lifetime
// so an abandoned laptop doesn't stay logged in forever.
// sessionCookieMaxAge is the cookie lifetime, matching the server's idle
// limit: a session unused for 30 days, or a year old, no longer signs anyone
// in (GetSessionByTokenHash), and the browser drops the cookie on the same
// idle clock.
const sessionCookieMaxAge = 30 * 24 * time.Hour
// Limits on the unauthenticated auth routes other than login (which uses