How is Magento setup to handle sessions, via filesystem or database?

Posted: April 7, 2013 in Magento
We just had a client run into the same issue, and Magento was setup to let the database handle sessions (default is the filesystem). I was unable to login. It would just keep sending me to the login page, but I could see the URL was trying to parse at least. Occassionaly I would get in to the backend after trying to login 2-3 times in a row, but would still get “logged out” of the system.
To see what you have, or to change it, open up the following:
app/etc/local.xml
Look for this:
<session_save><![CDATA[db]]></session_save>
And change it to this:
<session_save><![CDATA[files]]></session_save>
If it’s already set to files, then there’s possibly another bug. After you’ve done this, make sure you delete the following directories:
var/session
var/cache
And also delete all of the items in the core_session table.
You should be able to login and stay logged in now.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s