ID:               24169
 Updated by:       [EMAIL PROTECTED]
 Reported By:      steveh at brendata dot co dot uk
-Status:           Open
+Status:           Feedback
 Bug Type:         Session related
 Operating System: NT4 SP6a
 PHP Version:      4.3.2
 New Comment:

And what might be the relevant php.ini options..?
(the ones with "session." prefix)



Previous Comments:
------------------------------------------------------------------------

[2003-06-13 03:51:15] steveh at brendata dot co dot uk

Description:
------------
For session handling a cookie should be set as follows:
<session name>=<session id>
This was previously working, but since upgrading to 4.3.2 we now see
cookies set as follows:

<session id>=<session id>

As a result sessions are not carried over and a new session is started
for every access (i.e. no cookie called PHPSESSID or whatever is in the
php.ini)

Here's the relevant chunk of phpinfo output that demonstrates this.

_SERVER["HTTP_COOKIE"] CookieProductID=94;
a9c7fa405401e831e6ada0ee31f67ea3=a9c7fa405401e831e6ada0ee31f67ea3;
caec00776094cd5017fa35e41162333b=caec00776094cd5017fa35e41162333b;
139632a02257356caa27c86256afcb70=139632a02257356caa27c86256afcb70;
0ba5beadf45c35245e67c1f67ffc70dc=0ba5beadf45c35245e67c1f67ffc70dc;
b7f2e2e4a196a620f318f16034a8192b=b7f2e2e4a196a620f318f16034a8192b;
6ca2b668932e46c85528d399fad50541=6ca2b668932e46c85528d399fad50541;
913a5a99fa54ccd33b610b3f882d132d=913a5a99fa54ccd33b610b3f882d132d;
a7c7085d672b5e885476dabdc096ca9f=a7c7085d672b5e885476dabdc096ca9f;
04a257bf48fef943fb1d4ed508970140=04a257bf48fef943fb1d4ed508970140;
d269823ce913782241613e3791935d11=d269823ce913782241613e3791935d11;
edc78b150437138fb1d14915a97dee87=edc78b150437138fb1d14915a97dee87;
50212bca7b517a57521305d72a6c43c9=50212bca7b517a57521305d72a6c43c9;
68c37f0103351348dd1e705847e2f6d3=68c37f0103351348dd1e705847e2f6d3;
78d96155c83ee77e3fc3b69731b428a4=78d96155c83ee77e3fc3b69731b428a4;
e7b52247b003b85c04d942721879206a=e7b52247b003b85c04d942721879206a;
f3d20ebc7068137eaa7b3461eab64d62=f3d20ebc7068137eaa7b3461eab64d62;
c3940ed02170d481105849b74b6d3cb8=c3940ed02170d481105849b74b6d3cb8;
e8109d59aca1442f4cd7fa5358410c30=e8109d59aca1442f4cd7fa5358410c30;
2a0f643e85d2b21003958bb47c2a2d4d=2a0f643e85d2b21003958bb47c2a2d4d 

Reproduce code:
---------------
<?php

session_start();
$_SESSION["FRED"]=1;
echo session_id();
phpinfo();

?>

Expected result:
----------------
The same session id for each open, and PHPSESSID seen as a cookie in
the headers.

Actual result:
--------------
Different session id's each time, and a growing list of <session
id>=<session id> cookies.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=24169&edit=1

Reply via email to