|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[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. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 02:00:01 2025 UTC |
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.