Magento - Clean up session extension
Overview
This extension allows you to schedule a cleanup of Magento session storage (only files and database are supported)., (*1)
Convenient when you can not edit php.ini (to configure session garbage collector) or do not want to use a scheduled bash script., (*2)
Compatibility
Tested on Magento CE 1.6 - 1.9, (*3)
Notes
- Free and open source
- Fully configurable
- Bundled with English, French and Dutch (thanks to Michel van de Wiel) translations
Installation
No Magento files will be modified, no extended class, no overridden method., (*4)
With modman
$ modman clone https://github.com/aurmil/magento-cleanup-session.git
Manually
- 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
With composer
- 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
Usage
In System > Configuration > Advanced > System, this extension adds a new group: Session Cleaning., (*5)
, (*6)
Default values enable session cleanup task, daily at midnight., (*7)
You are free to change these settings and set an email address to receive log email if an error occurs., (*8)
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., (*9)
License
The MIT License (MIT). Please see License File for more information., (*10)