ID: 25906
User updated by: thxmike at hotpop dot com
Reported By: thxmike at hotpop dot com
-Status: Feedback
+Status: Open
Bug Type: Session related
Operating System: Windows 2000 Professional
PHP Version: 4.3.3
New Comment:
I commented out the dependancies
mainFrameset.php - is my frameset
The others are the frames.
Index.php is the start page.
you should see a varaible on the main page. If you select guest, the
variable is lost and if you go back to the main page another session
starts.
I have sent the web pages to the [EMAIL PROTECTED] since I cannot attach
anything in this form.
Previous Comments:
------------------------------------------------------------------------
[2003-10-18 23:05:37] [EMAIL PROTECTED]
Please provide a complete testcase without any external dependancies.
(preferrably a zip with all the necessary files)
------------------------------------------------------------------------
[2003-10-18 23:01:14] thxmike at hotpop dot com
Description:
------------
I am trying to use sessions in a frameset. When I change the page using
a link from another frame the $_SESSION is unavailable. I am not
certain if the $_SESSION is available in all frames. It does not appear
so. I though the session is available until the browser closes.
Reproduce code:
---------------
Page 1:
include('class/adodb/adodb.inc.php');
include('class/Hotel/hotel.php');
include('class/DatabaseObject/DatabaseObject.php');
session_start();
$_SESSION['temporary'] ='temporary';
Second page
include('class/adodb/adodb.inc.php');
include('class/Hotel/hotel.php');
include('class/DatabaseObject/DatabaseObject.php');
session_start();
print_r ($_SESSION);
Expected result:
----------------
Array ( [temporary] => temporary )
Actual result:
--------------
Array()
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25906&edit=1