From:             php at tokumaru dot org
Operating system: Ubuntu
PHP version:      5.5.2
Package:          Session related
Bug Type:         Bug
Bug description:wrong session cookie is generated on session.use_strict_mode

Description:
------------
In the case of session.use_strict_mode = On, a wrong session cookie is
generated.

Test script:
---------------
<?php
  session_start();
  $_SESSION['msg'] = 'hello';
  echo 'session_id: ' . session_id();

Expected result:
----------------
A valid session cookie is generated.


Actual result:
--------------
A wrong session cookie is generated.

The HTTP Response (Summary):

HTTP/1.1 200 OK
Set-Cookie: PHPSESSID=de3vsil36bfs3829rhnspq0oo7; path=/
Content-Length: 38
Content-Type: text/html

session_id: ocjalnfd088dd90eppb1hr14h3


The Session File:

$ sudo cat /tmp/sess_ocjalnfd088dd90eppb1hr14h3
msg|s:5:"hello";

-- 
Edit bug report at https://bugs.php.net/bug.php?id=65475&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=65475&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=65475&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=65475&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=65475&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=65475&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=65475&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=65475&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=65475&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=65475&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=65475&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=65475&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=65475&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=65475&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65475&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=65475&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=65475&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=65475&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=65475&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=65475&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=65475&r=mysqlcfg

Reply via email to