note 35862 rejected from function.session-set-cookie-params by betz

From: Date: Wed, 17 Sep 2003 12:23:36 +0000
Subject: note 35862 rejected from function.session-set-cookie-params by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-56632@lists.php.net to get a copy of this message
Note Submitter: danial@mail.ru ---- After changing PHP 4.2.3 to 4.3.3 I found some cookie setting changes that broke my custom auth code. 4.2.3 set cookie like this: Set-Cookie: PHPSESSID=...; expires=Mon, 12-Aug-07 01:42:29 GMT; path=/; domain=.acme.ru notice two-digit year in expires. 4.3.3 changed behavior to something like this: Set-Cookie: PHPSESSID=...; expires=Mon, 12-Aug-1907 01:42:29 GMT; path=/; domain=.acme.ru notice four-digit year format. browser translated 07 as 2007 in first case, in second 1907 was in the past and session cookie didn't set at all.

« previous php.notes (#56632) next »