From afe2cb12d0440b93cd86c18607ee0cfe474bd786 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sun, 26 May 2013 14:14:49 +0200 Subject: [PATCH] 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 --- includes/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); } /** -- 2.20.1