» » » » » » A quicker Joomla site with no cookie

A quicker Joomla site with no cookie

posted in: Joomla 0

Joomla_logo

There are a lot of cookies running in Joomla  for tracking, hit counting, statistics, etc., that are slowing the site, upload the server, and upset the users.

There is a way to disable all these cookies for visitors, keeping the usual options, including the front end login. Follow these stages:

  1. Disable the statistics of the site, by stopping the mosvisitor cookie, from Global configuration > Statistics > Statistics: No

  2. Disable the Template Chooser module to stop the jos_user_template cookie.

  3. Take a look to the components to see the ones that start their own PHP sessions. Try do avoid these sessions.

  4. Delete the comment out (//) from line 697 of  /includes/joomla.php:

// setcookie( $sessionCookieName, '-', false, '/' );

Due to the set of POST/GET parameter namely “force_session”, set in standard login module, there will be anyway a user session for log in. If you use a different module for log in, add this parameter.

Note: You can comment out the line 25 in  /offline.php: // session_start(); It seems that this is a reminiscence of the old versions, and there is no need to start a PHP session in this file, as Joomla uses its own session way.

Source: joomla.org

Leave a Reply

Your email address will not be published. Required fields are marked *