prevent session handling

Discussion regarding Joomla! 3.x Performance issues.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
panagiotiss
Joomla! Apprentice
Joomla! Apprentice
Posts: 38
Joined: Thu May 18, 2006 7:01 am
Location: Athens - Greece
Contact:

prevent session handling

Post by panagiotiss » Tue Jun 30, 2015 10:05 am

Hi is it possible in Joomla 3 to disable writing the guest sessions to the database?

thanks in advance
Centiva Software Solutions - http://www.centiva.gr

jootify
Joomla! Intern
Joomla! Intern
Posts: 66
Joined: Thu Feb 13, 2014 3:42 pm

Re: prevent session handling

Post by jootify » Wed Aug 26, 2015 1:33 pm

Without core-hacks, I am afraid this is not possible.

Look into using another session handler, such as APC or memcache(d) to reduce the load on the database.

User avatar
DerekSnieg
Joomla! Apprentice
Joomla! Apprentice
Posts: 49
Joined: Wed Oct 26, 2011 6:05 pm
Location: Police, Poland
Contact:

Re: prevent session handling

Post by DerekSnieg » Thu Sep 03, 2015 8:09 am

Not only is it not possible, it's not advisable - also, what do you mean by "guest sessions"? AFAIK, only users that are registered and log into your site create an entry in the sessions table. And that is the preferred way to do it - in the database.
As for Jootify's advice, I propose you steer clear of memcache - it's good in itself, but its implementation in Joomla! is a little less fortunate. Try APC instead.
I love to sing-a
About the moon-a and the June-a and the spring-a,

quepasa
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Fri Aug 15, 2008 8:57 pm

Re: prevent session handling

Post by quepasa » Sun Oct 04, 2015 8:25 pm

Joomla still uses the database for certain session handling stuff, even if you enable memcache/apc for sessions.

This is hardcoded into core, and there is a "TODO" entry in cms.php on line 741:

Code: Select all

// TODO: At some point we need to get away from having session data always in the db.
Also, Joomla does create sessions for guest users (aka users who are not logged in).

iamrobert
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 207
Joined: Sat Aug 25, 2007 8:13 am
Location: Taiwan
Contact:

Re: prevent session handling

Post by iamrobert » Mon Nov 30, 2015 3:59 am

You might find using Memory as the storage engine - to be faster:

http://www.itoctopus.com/how-to-optimiz ... sion-table
iamrobert Design | Taiwan
https://www.iamrobert.com


Locked

Return to “Performance - Joomla! 3.x”