Mediawiki Cookie的问题 [英] problem with mediawiki cookies

查看:298
本文介绍了Mediawiki Cookie的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当用户登录我们的Wiki时,他们会收到以下错误:此Wiki使用Cookie登录用户。您已禁用Cookie,请启用它们,然后重试。即使显示错误,用户实际上已登录,并可以正常进行编辑。如果用户不仔细看他们不能告诉他们已经登录,它会导致混乱我会很高兴,如果有人给我一个提示

anytime a user logs into our Wiki they get the following error: "This Wiki uses cookies to log in users. You have cookies disabled. Please enable them and try again." Even though the error displays, the user is actually logged in and can make edits as normal. If the user doesn't look closely they can't tell they are logged in and it's causing confusion I would be glad if anyone gives me a hint

推荐答案

Wikimedia的建议是

Wikimedia's advice is

检查以确保PHP的用于存储会话数据的目录是可写的。此目录可以在 session.save_path 设置下的 php.ini 文件中找到。此 php.ini 设置中的错误也可能会导致其他问题。
Check to make sure PHP's directory for storing session data is writable. This directory can be found in the php.ini file under the session.save_path setting. Errors in this php.ini setting can also cause other problems.

... Internet访客帐户(例如IUSR_FOOBAR,nobody或apache)对php.ini文件的 session.save_path 变量中列出的文件夹具有写入权限。

... (and) make sure the Internet Guest Account (eg. IUSR_FOOBAR, nobody, or apache) has write permissions to the folder listed in the session.save_path variable of the php.ini file.

来源。

如果您使用托管网站,则需要编辑php脚本配置(php.ini)。该页面应该包含有关您的Web文档根目录的信息。如果已经创建了一个tmp文件夹,那么使用它。如果当前设置中没有tmp文件夹,则创建一个用户无法浏览的文件夹,并按照上面的说明告诉php.ini文件的位置。

If you are using a hosting site you need to edit your php scripting configuration (php.ini). The page should have information on your web document root. If there is already a "tmp" folder created then use it. If there is not a tmp folder in your current set up create one that is NOT browseable by users and tell the php.ini file the location as directed above.

这篇关于Mediawiki Cookie的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆