11

In Joomla's Global Configuration there is an option "Session Handler", its description says

The mechanism by which Joomla! identifies a User once they are connected to the web site using non-persistent cookies.

However I still don't understand what it tries to explain.

What are the advantages and disadvantages of both? How do I know which option is good me?

  • 1
    A couple of the answers below appear to favour the "None" option, however, also check out this other question which suggests that the default "None" (ie. Files) method to store the session is synchronous, ie. the session is locked when being written to. – MrWhite Apr 25 '14 at 18:15
3

In the none option it use the default php session handle, which use files to store the session data. In the database option it use the database to store the session data. In http://www.tuxradar.com/practicalphp/10/3/7 you can know more about Files vs. Databases in the session

6

Similar to @codinghands's answer, writing the session to the database caused us to have too many connections:

https://stackoverflow.com/questions/14506124/joomla-is-causing-too-many-connections-database-errors

The database wasn't corrupted, but it brought our site down. We managed to resolve it by changing the session handler to none.

In addition, you may want to look into how PHP is storing your session. Ours were being written to the hard disk. This was slow (up to ~200ms), and isn't good if you want to load balance your servers. The mysql option would be good for load balancing if you can get around the 'too many connections problem'

3

Just to add my 2 cents: I've found in earlier versions of Joomla that the _sessions table often becomes corrupted on sites receiving a large number of unique visitors and hence open sessions, bringing the site down until the table is repaired / cleared. Using None resolved this for me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.