Session expire

kbahey - November 5, 2007 - 14:16

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 releasesDateSizeLinksStatus
5.x-1.02008-Mar-087.94 KBRecommended for 5.xThis is currently the recommended release for 5.x.
Development snapshotsDateSizeLinksStatus
5.x-1.x-dev2007-Nov-067.94 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.
 
 

Drupal is a registered trademark of Dries Buytaert.