Extend session lifetime to 365 days
Single-user personal app threat model is theft-of-device, not stolen-cookie. 30-day idle re-prompts created friction without proportional security benefit. Server TTL and client max-age remain in sync via shared constant. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -132,7 +132,7 @@ When making factual claims about Aaron — his history, credentials, locations,
|
|||||||
# Auth configuration
|
# Auth configuration
|
||||||
import os
|
import os
|
||||||
SESSION_PASSWORD = os.getenv("AARON_AI_PASSWORD", "changeme")
|
SESSION_PASSWORD = os.getenv("AARON_AI_PASSWORD", "changeme")
|
||||||
SESSION_MAX_AGE_SECONDS = 60 * 60 * 24 * 30
|
SESSION_MAX_AGE_SECONDS = 60 * 60 * 24 * 365
|
||||||
SESSIONS_DB = str(Path.home() / "aaronai" / "sessions.db")
|
SESSIONS_DB = str(Path.home() / "aaronai" / "sessions.db")
|
||||||
|
|
||||||
def _init_sessions():
|
def _init_sessions():
|
||||||
|
|||||||
Reference in New Issue
Block a user