More than 1000+ satisfied clients and counting, since 2010


Disable cookies for Visitors in Joomla Websites

Disable Joomla cookies for VisitorsJoomla content management system sometimes stores and utilizes the session cookies. Although there are a number of valuable reasons why it must do such, yet some users may not like being tracked. So they prefer disabling the website cookies. This blog post will help you how to disable cookies for normal visitors in your Joomla website.

How to Disable Joomla cookies for Visitors

Follow the easy step by step complete guide to disable Joomla cookies for your visitors:

  • Deactivate Joomla Website Cookie
  1. Go to Global Configuration
  2. Click ‘Statistics’
  3. Select ‘Statistics: No’

The above steps will stop the ‘mosvisitor’ cookie

  • Stop using Template Chooser Module

This prevents a cookie called ‘jos_user_template’

  • Check that your installed components doesn’t aid storing cookies

It is because some components start their own PHP session. Try replacing such Joomla components.
Delete or comment out the line no 697 from /includes/ Joomla.php

setcookie( $sessionCookieName, '-', false, '/' );
Delete or comment out line 25 in /offline.php: // session_start();

These are some of the most recommended ways to disable Joomla cookies when a normal visitor visits your website. So for improved user credibility you can afford not to preserve the cookies. It’s better if you find a more convenient and accepted method to track users, hit counts and other statistics.

If you are unable to disable Joomla cookies in your website, then recheck whether you have successfully carried out all the above steps. But still if you are unable to do it, Request a Quote with us. Our support team will assist you in disabling the Joomla cookies from your Joomla run website or blog.

Written by

The author didnt add any Information to his profile yet