#47395 [NEW]: session expiration date misformatted
From: tdtwisteruk at hotmal dot com
Operating system: linux
PHP version: 5.2CVS-2009-02-15 (CVS)
PHP Bug Type: Session related
Bug description: session expiration date misformatted
Description:
------------
The problem appear to be the wrong formating of the expiration date that
cause meny browsers to ignore the session cookie.
I think I have manage to track the bug. It appears to be on the file
/ext/session/session.c line 1119. I am currently working on a patch. It
should be trivial.
Reproduce code:
---------------
session_set_cookie_params(
$lifetime,
$path,
$domain,
$isSecure,
$httponly
);
session_start();
Expected result:
----------------
frontend=90b770550657dbe845656805a1e9bfe0; expires=Sun, 15-Feb-09 15:53:53
GMT; path=/magento; domain=localhost; HttpOnly
Actual result:
--------------
frontend=90b770550657dbe845656805a1e9bfe0; expires=Sunday, 15-Feb-09
15:53:53 GMT; path=/magento; domain=localhost; HttpOnly
--
Edit bug report at http://bugs.php.net/?id=47395&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47395&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47395&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47395&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=47395&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47395&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=47395&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=47395&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=47395&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=47395&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=47395&r=support
Expected behavior: http://bugs.php.net/fix.php?id=47395&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=47395&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=47395&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=47395&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47395&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=47395&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=47395&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=47395&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=47395&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=47395&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=47395&r=mysqlcfg
Thread (7 messages)
- tdtwisteruk at hotmal dot com