This extension allows you to schedule a cleanup of Magento session storage (only files and database are supported).
Convenient when you can not edit php.ini (to configure session garbage collector) or do not want to use a scheduled bash script.
Tested on Magento CE 1.6 - 1.9
- Free and open source
- Fully configurable
- Bundled with English, French and Dutch (thanks to Michel van de Wiel) translations
No Magento files will be modified, no extended class, no overridden method.
$ modman clone https://github.com/aurmil/magento-cleanup-session.git
- Download the latest version of this module here
- Unzip it
- Move the "app" folder into the root directory of your Magento application, it will be merged with the existing "app" folder
- Adapt the following "composer.json" file into yours:
{
"require": {
"aurmil/magento-cleanup-session": "dev-master"
},
"repositories": [
{
"type": "composer",
"url": "http://packages.firegento.com"
},
{
"type": "vcs",
"url": "git://github.com/aurmil/magento-cleanup-session"
}
],
"extra": {
"magento-root-dir": "./"
}
}
- Install or update your composer project dependencies
In System > Configuration > Advanced > System, this extension adds a new group: Session Cleaning.
Default values enable session cleanup task, daily at midnight.
You are free to change these settings and set an email address to receive log email if an error occurs.
Note: when removing this module, the scheduled task remains. Remove it from DB (core_config_data table, remove entry where path = crontab/jobs/aurmil_session_clean/schedule/cron_expr) or disable it in admin if you have AOE Scheduler module.
The MIT License (MIT). Please see License File for more information.