MediaWIki 会话空闲时间

发布于 2024-10-05 19:56:48 字数 235 浏览 0 评论 0原文

在一个 mediaWiki 项目中,我遇到过这样的情况:用户闲置一段时间(例如 20 分钟)后,他会自动注销。

我已经尝试在 LocalSettings.php 中设置 $wgCookieExpiration = 60*60*24*365;和 $wgCookieExpiration = 0;但它似乎不起作用,我仍然被注销。

我已经在 Chrome 和 Firefox 中对此进行了测试。

有什么想法吗?

in one mediaWiki project it happens to me that after a user has been idle for some period (like 20 minutes) he gets automatically logged out.

I have already tried to set in LocalSettings.php
$wgCookieExpiration = 60*60*24*365; and
$wgCookieExpiration = 0; but it does not seem to work, I still get logged out.

I have tested this in Chrome and Firefox.

Any ideas ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

青朷 2024-10-12 19:56:48

尝试排除可能的原因:

  1. 您是否在同一台电脑上使用其他帐户登录? 20分钟后也会超时吗?
  2. 您是否尝试过在其他电脑上使用该帐户,是否遇到同样的问题?

我之前曾遇到过 mediawiki 会话问题,在 Apache 重新启动后问题就消失了。您尝试过重新启动 Apache 吗?

Try to eliminate possible causes:

  1. Did you login on the same pc with another account? Does it also time out after 20 min?
  2. Have you tried using the account on a different pc, do you see the same problem?

I've had issues with mediawiki sessions before,that disappeared after an Apache reboot. Did you try rebooting Apache?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文