Manual:$wgCookieExpiration/zh

细节
默认值为30天（30*86400秒）. This means most MediaWiki cookies will last 30 days. This includes, "keep me logged in" cookies, unless is used (which defaults to 180 days).

Since MediaWiki 1.22 setting this configuration variable to 0 makes cookies session-only. 这之前曾经记载可以工作，但会损坏.

这被WebResponse::setcookie和mw.cookie.set使用，尽管个别cookie可以有自定义的到期时间.