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
This commit is contained in:
Tim Starling 2013-05-26 14:14:49 +02:00
parent e3e03f53ce
commit afe2cb12d0

View 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 );
}
/**