Use a UNIX timestamp in the LoggedOut cookie
authorTim Starling <tstarling@wikimedia.org>
Sun, 26 May 2013 12:14:49 +0000 (14:14 +0200)
committerTim Starling <tstarling@wikimedia.org>
Thu, 4 Jul 2013 05:55:10 +0000 (15:55 +1000)
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

includes/User.php

index 3ee32c3..2e22312 100644 (file)
@@ -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 );
        }
 
        /**