#39748 [Opn->Bgs]: session is reset when you open it from another browser
| From: | joey@php.net | Date: | Tue, 05 Dec 2006 20:47:01 +0000 |
| Subject: | #39748 [Opn->Bgs]: session is reset when you open it from another browser | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-105962@lists.php.net to get a copy of this message | ||
ID: 39748
Updated by: joey@php.net
Reported By: str at strgt dot cjb dot net
-Status: Open
+Status: Bogus
Bug Type: Session related
Operating System: Debian GNU/Linux
PHP Version: 5.2.0
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
As you were told in IRC, this is not a PHP bug.
Previous Comments:
------------------------------------------------------------------------
[2006-12-05 20:39:59] str at strgt dot cjb dot net
Description:
------------
I open a session in browserA and get session_id() = X;... I set some
vars to $_SESSION and then go to browserB where I get session_id() = Y.
If i try to set the session_id(X) in browserB, the session is destroyed
and I cannot see the session from browserA or browserB.
You can test the code in
http://develsystems.com/sessionTest.php
http://develsystems.com/sessionTest.phps
And see the phpinfo in
http://develsystems.com/phpinfo.php
Reproduce code:
---------------
<?php
if ($_GET['SES']) {
session_id($_GET['SES']);
}
session_start();
echo session_id();
if (isset($_GET['a'])) {
$_SESSION['a'] = $_GET['a'];
}
echo '<pre>'; var_dump($_SESSION);
Expected result:
----------------
It should open the session from browserA in browserB and not destroy
it.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39748&edit=1