When online merchants make their first steps working with Magento, they have to spend a great deal of time configuring the admin panel, setting desired parameters, installing extensions, uploading products into catalog. Sometimes, their session expires and interrupts the work, which makes them re-login and start anew.
However, it is quite easy to configure the session life time. Go to System → Configuration → Admin → Security → Session Lifetime and set the desired time. It is important to remember that time is counted in seconds on the server. So, the value 1800 (seconds) will allow you work in the admin panel for 30 minutes.
All sessions are stored in the file system by default. This is very convenient for users. Besides, all sessions can be checked using FTP access to the server. However, there is one significant disadvantage in this way of session storage: after some time, the amount of files may exhaust allowed server space. The path of the storage is specified in local.xml file:
The users may choose to save the session files in the database. The database is stable even in case of unexpected system downtimes or overloads. But, when this method of the data storage is used the general system load is increased. So, this way is better for small online stores, since the stores with large amount of products may encounter MySQL server performance issues.
In order to set the path of the session files storage it is necessary to access app/etc/local.xml file and add the following:
When the data are transferred from the file system to the database, it is necessary to edit the file config.xml and remove the following line:
Of course, each user is free to choose the way of session data storage which is the most convenient for them. If you have any additional questions, please contact Magento experts directly and they will do their best to assist you.