Manual:$wgCookieExpiration/zh

细节
默认值为180天（180*86400秒/天）. This means MediaWiki users will be logged out automatically 180 days after they log in if they select the "remember me" checkbox when logging in.

Since MediaWiki 1.22 setting this configuration variable to 0 makes all 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.