Skip to content

Update Session Lifetime

By default, the session lifetime is set to 5 days. This means that when a user logs in to the Tenantos web interface, they will remain logged in for up to 5 days. If you want to reduce the default lifetime for security reasons or increase it for convenience, please follow these steps:

  1. Log in to your Tenantos main server via SSH.
  2. Open the file /var/www/html/.env
  3. Adjust the value of the SESSION_LIFETIME parameter. The value is in minutes.

No further steps are necessary. The change will be applied immediately after saving, and the customization will not be overwritten by updates.

Please note that increasing the session lifetime may lead to many files on the file system. Therefore, it should be ensured beforehand that enough inodes are available.

Alternatively, the session timeout can also be set individually for each user in their user profile. However, it is not possible to override the maximum length. Instead, the session lifetime can only be shortened for individual users.