php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46430 Session data lost
Submitted: 2008-10-30 13:42 UTC Modified: 2008-10-30 23:52 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: robert dot saylor at tekelec dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 5.2.6 OS: CentOS release 5.2 (Final)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: robert dot saylor at tekelec dot com
New email:
PHP Version: OS:

 

 [2008-10-30 13:42 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-30 17:25 UTC] robert dot saylor at tekelec dot com
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.
 [2008-10-30 17:28 UTC] robert dot saylor at tekelec dot com
I was able to duplicate this bug on 2 servers.
 [2008-10-30 23:52 UTC] jani@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 00:01:30 2024 UTC