Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Session Timeout Notification

No security coverage Under active development 34 sites

This module provides a notification to users before their session expires, allowing them to renew it and prevent data loss. It also allows for configuration of the notification timing.

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

Drupal 8–10 · not 11

Ask your assistant about Session Timeout Notification

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Apr 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
2.0.0 Stable 8–10 Apr 7, 2023