본문 바로가기
미디어위키

Manual $wgCookieExpiration

by 다움위키 2023. 12. 30.
Cookies: $wgCookieExpiration
Number of seconds before HTTP cookies expire. You can override this for 'Keep me logged in' cookies with $wgExtendedLoginCookieExpiration
Introduced in version: pre 1.1.0
Removed in version: still in use
Allowed values: (integer)
Default value: 1.18–: 30 * 86400
1.19–1.28: 180 * 86400 (r94430)
1.29+: 30 * 86400 (Gerrit change 321592)
Other settings: Alphabetical | By function

Details

기본값은 30일 (30 * 86400초)입니다. 이것은 대부분의 미디어위키 쿠키가 30일 동안 지속된다는 것을 의미합니다. 이것은 "$wgCookieExpiration" 옵션이 설정되지 않았을 때 로그인/세션 쿠키를 포함합니다. "$wgCookieExpiration"이 설정될 때, $wgExtendedLoginCookieExpiration가 대신 사용됩니다 (비록 기본적으로 그 설정이 $wgCookieExpiration으로 폴백될지라도).

"Keep me logged in"가 설정되지 않았을 때, 로그인 만료는 역시 Manual:$wgObjectCacheSessionExpiry에 의해 제한됩니다 (해당 기간 동안 상호 작용이 없을 때 세션이 만료됩니다).

MediaWiki version:
≥ 1.22

미디어위키 1.22 이후로 이 구성 변수를 0으로 설정하면 쿠키 세션-전용으로 만듭니다. 이것은 이전에 작동하는 것으로 문서화되었지만, 작동하지 않습니다.

이것은 WebResponse::setcookiemw.cookie.set에 의해 사용되지만, 개별 쿠키에는 사용자 정의 만료를 가질 수 있습니다.

See also