Manual:$wgCookieExpiration

This page is a translated version of the page Manual:$wgCookieExpiration and the translation is 54% complete.
Cookie: $wgCookieExpiration
HTTP Cookie の有効期限が切れるまでの秒数。 $wgExtendedLoginCookieExpiration を使用して「ログイン状態を保持」cookie をオーバーライドできる。
導入されたバージョン:1.1.0 未満
除去されたバージョン:使用中
許容される値:(整数)
既定値:1.18–: 30 * 86400
1.19–1.28: 180 * 86400 (r94430)
1.29+: 30 * 86400 (Gerrit change 321592)

詳細

既定値は 30 日間 (30 * 86400 秒) です。 This means most MediaWiki cookies will last 30 days. This includes login/session cookies when the "ログイン状態を保持" option is not set. When "ログイン状態を保持" is set, $wgExtendedLoginCookieExpiration is used instead (although by default that settings falls back to $wgCookieExpiration).

When "ログイン状態を保持" is not set, login expiry is also limited by $wgObjectCacheSessionExpiry (the session expires when there is no interaction for that time span).

MediaWiki バージョン:
1.22

Since MediaWiki 1.22 setting this configuration variable to 0 makes cookies session-only. This was previously documented as working, but broken.

This is used by WebResponse::setcookie and mw.cookie.set, though an individual cookie can have a custom expiration.

関連項目