On 12/19/2012 12:47 AM, Tyler Romeo wrote:
> Maybe I'm missing something, but where is the 180 days number coming from.
> When User::setCookies() sets the cookies, it gives it no expiry, so in
> reality the cookie persists until the browser removes it.
>From User::setCookies():
foreach ( $cookies as $name => $value ) {
if ( $value === false ) {
$this->clearCookie( $name );
} else {
$this->setCookie( $name, $value, 0, $secure );
}
}
>From the doc comment for User::setCookie():
@param $exp Int Expiration time, as a UNIX time value; if 0 or not
specified, use the default $wgCookieExpiration
>From WebResponse::setcookie():
if ( $expire == 0 ) {
$expire = time() + $wgCookieExpiration;
}
>From DefaultSettings.php:
$wgCookieExpiration = 180*86400;
--
Wikipedia user PleaseStand
http://en.wikipedia.org/wiki/User:PleaseStand
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l