ID: 46430
User updated by: robert dot saylor at tekelec dot com
Reported By: robert dot saylor at tekelec dot com
Status: Open
Bug Type: Session related
Operating System: CentOS release 5.2 (Final)
PHP Version: 5.2.6
New Comment:
While the issue is still there: My Computer > Favorites > goto a php
app that uses sessions > click on a link that opens a new window > php
will create a new session.
Workaround:
<?php
$ses_id = session_id();
?>
<A HREF="application.php5?PHPSESSID=<?php echo
"$ses_id";?>&item=<?=$row['id']?>&type=Features"
target="_blank">TEST</a>
application.php:
session_start();
if (isset($_REQUEST[PHPSESSID])) {
session_id($_REQUEST[PHPSESSID]);
}
Using this method, the original session is passed and IE will not use
the blank session but instead use the session we intended to use.
Previous Comments:
------------------------------------------------------------------------
[2008-10-30 13:42:16] robert dot saylor at tekelec dot com
Description:
------------
Duplicate PHP session is created. The 2nd session has no data - 0k.
Reproduce code:
---------------
The php session data will be lost if you open My Computer > Favorites >
navigate to a php program that uses sessions in your bookmarks.
When the user loggs in, the session is created. But further navigation
a new session is created with 0k. The application does not use the
original session.
If the user directly opens Internet Explorer and navigates to the
application the session works correctly.
CODE:
<?
session_start();
?>
After the user loggs in, a session is created. If the application opens
another window using a <a href="application.php5"
target="_blank">application</a> php will create a 2nd session with 0k.
In the application.php5:
<?
session_start();
?>
If the user openes IE and loggs in this issue does not accurr. Only
when the 1st start in My Computer > Favorites or File Explorer >
Favorites
Expected result:
----------------
PHP should use the original session.
Actual result:
--------------
PHP creates a 2nd session with no data.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46430&edit=1