#39748 [NEW]: session is reset when you open it from another browser
| From: | str at strgt dot cjb dot net | Date: | Tue, 05 Dec 2006 20:39:59 +0000 |
| Subject: | #39748 [NEW]: session is reset when you open it from another browser | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-105961@lists.php.net to get a copy of this message | ||
From: str at strgt dot cjb dot net
Operating system: Debian GNU/Linux
PHP version: 5.2.0
PHP Bug Type: Session related
Bug description: session is reset when you open it from another browser
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 bug report at http://bugs.php.net/?id=39748&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39748&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39748&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39748&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=39748&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=39748&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=39748&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=39748&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=39748&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=39748&r=support
Expected behavior: http://bugs.php.net/fix.php?id=39748&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=39748&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=39748&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=39748&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39748&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=39748&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=39748&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=39748&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=39748&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=39748&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=39748&r=mysqlcfg