Extend user session duration to improve the overall user experience

Removes `useSessionTimeout` hook and increases the session `maxAge` to 24 hours in `server/routes.ts`.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/0fcd8a07-209c-4438-b4c7-bd4229e22926.jpg
This commit is contained in:
michaelschal committed 2025-07-10 09:52:12 +00:00
1 parent f828278efa
commit 28ca128ab6
3 files changed
+1 -107

No files matched your search

+1 -1
View File
@@ -61,7 +61,7 @@ export async function registerRoutes(app: Express): Promise<Server> {
saveUninitialized: false,
cookie: {
secure: false, // Set to true in production with HTTPS
maxAge: 15 * 60 * 1000 // 15 minutes
maxAge: 24 * 60 * 60 * 1000 // 24 hours
}
}));