Forums / General / Huge database / Comment37143
Karnichi Mohamed
Saturday 11 July 2009 5:49:49 am
Hi Christian,
As Exponential stores sessions informations in the database, you have to enable session.gc_probability so the expired sessions are purged:
so in your php.ini check if your have these parameters:
session.gc_probability = 1 session.gc_divisor = 100
If you look at your database size you will find that the ezsession table is huge !
For now you can truncate the ezsession table :
mysql >truncate table ezsession
or use the cleanup script
php update/common/scripts/cleanup.php session php update/common/scripts/cleanup.php expired_session
Mo
http://www.amiralweb.com Certified eZPublish Expert