limited-city-59768
03/06/2024, 10:00 AMchilly-king-10285
03/06/2024, 10:00 AMchilly-king-10285
03/06/2024, 10:01 AM<https://console.ory.sh/> and navigate to Session Settings. 2. Enter the desired lifespan in the appropriate format (hours, minutes, seconds). For example, to set the session lifespan to 30 days, enter 720h. 3. Click the Save button. Alternatively, you can use the Ory CLI to change the session lifespan: 1. Download the Ory Identities config from your project and save it to a file using the following commands: bash ## List all available projects ory list projects ## Get config ory get identity-config {project-id} --format yaml > identity-config.yaml 2. Update the configuration value for session lifespan property to the desired value in the identity-config.yaml file: yaml session: cookie: domain: {project.slug}.<http://projects.oryapis.com|projects.oryapis.com> name: ory_session_{name} path: / persistent: false same_site: Lax lifespan: 720h 3. Update the Ory Identities configuration using the file you worked with: bash ory update identity-config {project-id} --file identity-config.yaml For more details, refer to the [Ory documentation](https://www.ory.sh/docs/kratos/session-management/session-lifespan).limited-city-59768
03/06/2024, 10:02 AMchilly-king-10285
03/06/2024, 10:02 AMchilly-king-10285
03/06/2024, 10:02 AMbash ## List all available projects ory list projects ## Get config ory get identity-config {project-id} --format yaml > identity-config.yaml 2. Update the configuration value for session lifespan property to the desired value in the identity-config.yaml file: yaml session: cookie: domain: {project.slug}.<http://projects.oryapis.com|projects.oryapis.com> name: ory_session_{name} path: / persistent: false same_site: Lax lifespan: 720h 3. Update the Ory Identities configuration using the file you worked with: bash ory update identity-config {project-id} --file identity-config.yaml For more details, refer to the [Ory documentation](https://www.ory.sh/docs/kratos/session-management/session-lifespan).limited-city-59768
03/06/2024, 10:05 AMchilly-king-10285
03/06/2024, 10:05 AMchilly-king-10285
03/06/2024, 10:06 AMyaml session: lifespan: 720h Please refer to the [Ory Kratos documentation](https://www.ory.sh/kratos/docs/) for more detailed instructions and examples.limited-city-59768
03/06/2024, 4:50 PMchilly-king-10285
03/06/2024, 4:51 PMchilly-king-10285
03/06/2024, 4:51 PM{project-id} placeholder should be replaced with your actual project ID. For example, if your project ID was 1234, the command to update the identity configuration would look like this: bash ory update identity-config 1234 --file identity-config.yaml Please note that the exact method to obtain your project ID may vary depending on the specifics of your Ory setup. If you're unsure, please refer to the [Ory documentation](https://www.ory.sh/docs/) or your project's settings in the Ory console.