Answer the question
In order to leave comments, you need to log in
How to disable user sessions for frontend in Joomla?
Given: many (100+) sites on Joomla 3.2+. Spam bots come to many sites, although in principle they have nothing to do there, almost all sites are business card sites, while bots are persistently looking for K2 components, mosets tree, jcomments, etc. to leave your spam comments.
Everything would be fine, but the problem is that for each bot, even on a cached page, requests are made to create a session, delete old sessions, and update the session. With high activity of bots (100+ hits per minute for each site) purely on these queries (INSERT, DELETE, UPDATE to the #__sessions table), the database becomes loaded.
The setting in the site configuration where you can specify Session storage does not really work (even if you specify None, the site will continue to communicate with the #__sessions table).
Is there any way to generally disable user sessions in the front?
Answer the question
In order to leave comments, you need to log in
configuration.php in the root of the site -
$lifetime : session duration in minutes. Specifies the time that will elapse before a user who is inactive is disconnected.
$session_handler : "database" or "none". Specifies how the session will be handled after the user connects.
specify session_handler: none
"session_handler = none" only means that the default handler will be used, that is, the file handler.
Salvation without Joomla Platform hacks I see only the use of session_handler APC or Memcached
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question