From def3c1894d9296021da046c23cfec8faa2e348b5 Mon Sep 17 00:00:00 2001 From: delta-mind-phofmann Date: Thu, 24 Oct 2024 00:15:30 +0200 Subject: [PATCH] chore: session max age note --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index dfd68d91..71546884 100644 --- a/README.md +++ b/README.md @@ -589,11 +589,16 @@ export default defineNuxtConfig({ runtimeConfig: { session: { maxAge: 60 * 60 * 24 * 7 // 1 week + cookie: { + maxAge: 60 * 5 // 5 minutes + } } } }) ``` +> Please note that `session.maxAge` is the lifetime of the session itself and `session.cookie.maxAge` is the lifetime of the cookie storing the session. + Our defaults are: ```ts