From: Tim Starling Date: Sun, 26 May 2013 12:14:49 +0000 (+0200) Subject: Use a UNIX timestamp in the LoggedOut cookie X-Git-Tag: 1.31.0-rc.0~19274^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%29%20.%20%22?a=commitdiff_plain;h=afe2cb12d0440b93cd86c18607ee0cfe474bd786;p=lhc%2Fweb%2Fwiklou.git Use a UNIX timestamp in the LoggedOut cookie Since it is easier to interpret in VCL. The read side code strangely does not need to be updated, and MW will continue to work with cookies sent before this change, because wfTimestamp() automatically detects the timestamp format. Change-Id: I8c661b735b1de8e295d5d713a5ca959ee99e274e --- diff --git a/includes/User.php b/includes/User.php index 3ee32c3ddf..2e223127a0 100644 --- a/includes/User.php +++ b/includes/User.php @@ -3146,7 +3146,7 @@ class User { $this->clearCookie( 'forceHTTPS' ); // Remember when user logged out, to prevent seeing cached pages - $this->setCookie( 'LoggedOut', wfTimestampNow(), time() + 86400 ); + $this->setCookie( 'LoggedOut', time(), time() + 86400 ); } /**