2017-05-09 54 views
1

我正在尝试禁用所有访问者Cookie,供我的Joomla网站使用。如何禁用Joomla 3.x中的所有访问者Cookie

我发现了一些教程,但他们是为Joomla版本:1.x的

有什么建议?

+0

我面临同样的问题。我目前的解决方法是使用Apache mod_headers删除“Set-Cookie”http头。另外我跟着[this](http://elmasrydev.blogspot.hu/2014/03/how-to-disable-sessions-in-joomla-3x.html),它本身并不能解决问题,但可以有助于减少数据库负载。我对此并不满意,但总比没有好。 – balping

+0

主要问题是,joomla开发人员认为[它会太复杂](https://github.com/joomla/joomla-cms/issues/8772#issuecomment-168973989)来实现这样的功能,所以不会恐怕很快就会成为一个干净的解决方案。 – balping

回答

-1

要避免所有正常访问者的Cookie,您需要按照以下步骤操作。

First of all: Deactivate site statistics! Global configuration -> Statistics -> Statistics: No. This will stop the "mosvisitor" cookie. 

Don't use the Template Chooser module, because it uses a cookie named "jos_user_template". 

Be careful with components: Some might start their own PHP session. 

Now to the main point: comment out line 697 of /includes/joomla.php like this: 



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

附加:在/offline.php注释掉线25:

// session_start(); 

这接缝是旧版本的伪影。

+0

感谢您的回答Kaif,但本教程提及Joomla 1.x. 在版本Joomla 3.x全局配置>静态 - 不存在。 也在文件夹/包含/没有这样的文件joomla.php –

+0

问题明确问到3.x – balping

相关问题