few-balloon-32118
03/20/2023, 9:50 PM720h0m0s
in the settings, but I’m always signed out after a couple of days (maximum).
I’m using the @ory/client
with React, and I’m starting to wonder if there are any “gotchas” here?few-balloon-32118
03/20/2023, 9:55 PMIf max-age is set as a part of the Set-Cookie header, the browser deletes the cookie when it reaches the age defined in max-age.
When max-age is not set, the browser deletes the cookie when the session ends. The session ends when the set session lifespan expires, or when the browser is shut down by the user.
and tried to shut down my browser, which resulted in me being logged out.
Now I just have to figure out why this happens😅
My config looks like this:
"session": {
"cookie": {
"persistent": false,
"same_site": "Lax"
},
"lifespan": "720h0m0s",
"whoami": {
"required_aal": "highest_available"
}
}
few-balloon-32118
03/20/2023, 10:06 PMpersistent
to true
seemed to do the trick.magnificent-energy-493
## Make Session Cookie Persistent ##
If set to true will persist the cookie in the end-user’s browser using thewe should make this more clear in the docs 🤔 which document did you look at when implementing this @few-balloon-32118parameter which is set to themax-age
value. Persistent cookies are not deleted when the browser is closed (e.g. on reboot or alt+f4). This option affects the Ory OAuth2 and OpenID Provider’s remember feature as well.session.lifespan
few-balloon-32118
03/21/2023, 9:06 AM