fancy-balloon-44148
07/17/2024, 3:22 AMchilly-king-10285
07/17/2024, 3:22 AMchilly-king-10285
07/17/2024, 3:22 AM720h
in the configuration. Here is an example of how to set the session lifespan using the Ory CLI: bash ## List all available projects ory list projects ## Get config ory get identity-config {project-id} --format yaml > identity-config.yaml
Then, update the configuration value for session lifespan property to the desired value: yaml session: cookie: domain: $<http://PROJECT_SLUG.projects.oryapis.com|PROJECT_SLUG.projects.oryapis.com> name: ory_session_{name} path: / persistent: false same_site: Lax lifespan: 720h
Finally, update the Ory Identities configuration using the file you worked with: bash ory update identity-config {project-id} --file identity-config.yaml
You can find more information about session management in Ory Kratos in the [official documentation](https://www.ory.sh/docs/kratos/session-management/session-lifespan).