This project is not covered by Drupal’s security advisory policy.
Session Timeout Notification is a module for Drupal 8, utilizing PHP's session variables. This will provide the users a simple notification of an upcoming session expiration, allowing them to renew their current session without losing any critical data due to unknown loss of session.
Installation
1. Place the timeout-notification directory in your modules directory.
2. Enable the Timeout Notification module at /admin/modules.
Customization
For control of PHP session variables, if not already set through PHP configuration, you will need to configure them through the services.yml file found in sites/default/ . If this file does not exist, create it from the default.services.yml .
Inside your services.yml file, find the gc_maxlifetime setting. By default gc_maxlifetime is set to 200000 seconds. Alter this to match your desired session lifetime.
gc_maxlifetime - is used to set the session lifetime (in seconds). i.e. the time from the user's last visit to the active session may be deleted by the session garbage collector. When a session is deleted, authenticated users are logged out,and the contents of the user's $_SESSION variable is discarded.
Configuration
Settings can be altered at /admin/config/timeout_notification for project specific customization.
i.e. seconds in advance to notify users of upcoming session expiration. By default, this is set to 60 seconds
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.- Project categories: Administration tools, Content editing experience, Developer tools
39 sites report using this module
- Created by rharp on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.


