in Magento

Configure Magento to store session data in the database

I’ve had some problems on a Magento installation where all inodes are used up to store the session data. To fix this I had to configure Magento to store the sessions in the database instead of the file system. This is how I didi it:

1. Edit the local.xml configuration file and locate this line: (pico app/etc/local.xml)

<session_save><![CDATA[files]]></session_save>

Change “files” into “db” so that the line looks like this:

<session_save><![CDATA[db]]></session_save>

2. Remove the session directory to free up space and inodes

rm var/session -rf