Disable Session Expiry on Browser Close
Original Question or Issue:
Disable Session Expiry on Browser Close
Environment:
- Product - FileCloud Server
- Version - Any
- Platform - Any
Steps to Reproduce:
Error or Log Message:
Defect or Enhancement Number:
Cause:
Resolution or Workaround:
By default, the session remains active until the configured timeout expires or the browser is closed. After the browser is reopened, sign-in is required.
To keep the session active even after the browser is closed, add the following configuration parameter to extend the browser cookie timeout. For proper behavior, set this value significantly higher than the session timeout. For example, if the session timeout is 30 days, set the browser cookie timeout to 90 days.
define("TONIDOCLOUD_BROWSER_COOKIE_TIMEOUT", 86400); // Time in seconds that the browser remains logged in after browser closure
cloudconfig.php file location:
- Windows:
drive letter:\xampp\htdocs\config\cloudconfig.php - Linux:
/var/www/html/config/cloudconfig.php
Notes: