Session expire
Expires rows from the session table older than a certain time.
On busy sites, the sessions table can grow to be very large, and that can cause slow accesses to it, as well as slow writes due to locking, leading to performance bottlenecks.
By trimming the table regularly, the above bottlenecks are avoided.
Drupal uses the PHP garbage collection mechanism to cleanup the sessions table, but this mechanism depends on PHP's configuration, and can fire for any session.
This module moves this functionality to cron, and hence is a background process, and is consistent and predictable regardless of PHP's garbage collection configuration.
Installation
To install, copy the module's directory and all its contents to your modules directory.
Configuration
To enable this module, visit Administer -> Site building -> Modules.
To configure it, go to Administer -> Site configuration -> Session Expire.
The default settings are suitable for most sites, but you can adjust them to your particular needs. The instructions there should be self explanatory.
Sponsors
This module was developed with sponsorship funding from the following sites:
Author
Khalid Baheyeldin of 2bits.com.
The author can also be contacted for paid customizations of this module as well as Drupal consulting,
installation, development, and customizations.
Releases
| Official releases | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 5.x-1.0 | 2008-Mar-08 | 7.94 KB | Download · Release notes | Recommended for 5.x | |
| Development snapshots | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 5.x-1.x-dev | 2007-Nov-06 | 7.94 KB | Download · Release notes | Development snapshot | |
