Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

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

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 Release date
2.0.0 Stable Apr 7, 2023