#49583 [Opn->Bgs]: variable sesClientIP auto generated in $_SESSION
| From: | ssiangge at yahoo dot com dot sg | Date: | Fri, 18 Sep 2009 04:59:32 +0000 |
| Subject: | #49583 [Opn->Bgs]: variable sesClientIP auto generated in $_SESSION | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-142484@lists.php.net to get a copy of this message | ||
ID: 49583
User updated by: ssiangge at yahoo dot com dot sg
Reported By: ssiangge at yahoo dot com dot sg
-Status: Open
+Status: Bogus
Bug Type: Session related
Operating System: Ms WinXP Home Ed SP3
PHP Version: 5.3.0
New Comment:
Hi,
I solved the problem already.
it was because i trying access to localhost/siteA/index.php (which is i
reported as bug),
then i go to another page localhost/siteB/index.php.
Both site are using session, and the session domain is set to localhost
(by Default), so the siteB has overwrite the Session data for siteA due
to same Session ID.
sorry for the interrupt.
--------------------------
I always support PHP. Good job!
Previous Comments:
------------------------------------------------------------------------
[2009-09-18 03:54:42] ssiangge at yahoo dot com dot sg
Description:
------------
Hi,
please refer the source code below...
I wonder why there is a variable 'sesClientIP' been auto generated.
To get the thing appear, follow the step:
1. go to the page that contain the source code below.
** you will see the Expected result.
2. go to another web site e.g. google.com.
3. press 'back' button, and then press 'refresh' button if using
Firefox.
** you will able to see there is a variable 'sesClientIP' in the
$_SESSION.
I am expecting there will no any data in the $_SESSION.
Please correct me if I am wrong.
Note: there was no reference can be found from Yahoo or Google.
Reproduce code:
---------------
<?php
session_start();
echo "<pre>";
var_export($_SESSION);
echo "</pre>";
?>
Expected result:
----------------
array (
)
Actual result:
--------------
array (
'sesClientIP' => '',
)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49583&edit=1