#25906 [Opn-Fbk]: Sessions and Framesets

2003-11-17 Thread sniper
 ID:   25906
 Updated by:   [EMAIL PROTECTED]
 Reported By:  thxmike at hotpop dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Session related
 Operating System: Windows 2000 Professional
 PHP Version:  4.3.3
 New Comment:

Does it work if you run PHP as CGI? 



Previous Comments:


[2003-10-21 11:01:49] thxmike at hotpop dot com

OK, To better help you understand the problem I am going to give you
all the scenarios that I have tested it with.
I have tested it with:
My Laptop - Windows 2000/IIS6/PHP as an ISAPI Module - This fails
My Laptop - Windows 2000/Apache2/PHP as an ISAPI Module -  This fails
Friends hosted Site - Linux/Apache 1.3.28/CGI - Works.
I will send you the phpinfo() files for the hosted site and
Windows/apache sites.



[2003-10-21 06:21:06] [EMAIL PROTECTED]

ISAPI and Apache2? Do you mean PHP as DSO in Apache2 under Windows? Or
are you running IIS with PHP as ISAPI module?




[2003-10-21 00:22:30] thxmike at hotpop dot com

To add some additional information, it appears that it may be related
to either PHP running as an isapi or the OS. I have installed Apache
2.0 installed PHP as an isapi but I still get the same results.



[2003-10-20 22:51:35] thxmike at hotpop dot com

I spoke to soon. It appears to be a problem related to one of two
things. It is either the Web Server. The problem does not occur on a
Apache web server which my friend is running here
http://www.anthong.com/MRivera/index.php. It does occur on a IIS web
server which I am running locally on my laptop. It can either be the
php.ini or the Web server. Sorry to inconvenience you. Any assistance
is appreciated. I can send you to updated code to verify if need so.



[2003-10-20 03:37:22] [EMAIL PROTECTED]

Your script is broken:

Warning: session_start(): Cannot send session cookie - headers already
sent by (output started at /www/htdocs/test2/main.php:3) in
/www/htdocs/test2/main.php on line 10

Warning: session_start(): Cannot send session cache limiter - headers
already sent (output started at /www/htdocs/test2/main.php:3) in
/www/htdocs/test2/main.php on line 10
Array ( [temporary] = temporary ) 

'session_start();' has to be FIRST line and no output is allowed before
it. (unless you have output_compression enabled)



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/25906

-- 
Edit this bug report at http://bugs.php.net/?id=25906edit=1


#25906 [Opn-Fbk]: Sessions and Framesets

2003-10-21 Thread sniper
 ID:   25906
 Updated by:   [EMAIL PROTECTED]
 Reported By:  thxmike at hotpop dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Session related
 Operating System: Windows 2000 Professional
 PHP Version:  4.3.3
 New Comment:

ISAPI and Apache2? Do you mean PHP as DSO in Apache2 under Windows? Or
are you running IIS with PHP as ISAPI module?



Previous Comments:


[2003-10-21 00:22:30] thxmike at hotpop dot com

To add some additional information, it appears that it may be related
to either PHP running as an isapi or the OS. I have installed Apache
2.0 installed PHP as an isapi but I still get the same results.



[2003-10-20 22:51:35] thxmike at hotpop dot com

I spoke to soon. It appears to be a problem related to one of two
things. It is either the Web Server. The problem does not occur on a
Apache web server which my friend is running here
http://www.anthong.com/MRivera/index.php. It does occur on a IIS web
server which I am running locally on my laptop. It can either be the
php.ini or the Web server. Sorry to inconvenience you. Any assistance
is appreciated. I can send you to updated code to verify if need so.



[2003-10-20 03:37:22] [EMAIL PROTECTED]

Your script is broken:

Warning: session_start(): Cannot send session cookie - headers already
sent by (output started at /www/htdocs/test2/main.php:3) in
/www/htdocs/test2/main.php on line 10

Warning: session_start(): Cannot send session cache limiter - headers
already sent (output started at /www/htdocs/test2/main.php:3) in
/www/htdocs/test2/main.php on line 10
Array ( [temporary] = temporary ) 

'session_start();' has to be FIRST line and no output is allowed before
it. (unless you have output_compression enabled)



[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=25906edit=1


#25906 [Opn-Fbk]: Sessions and Framesets

2003-10-18 Thread sniper
 ID:   25906
 Updated by:   [EMAIL PROTECTED]
 Reported By:  thxmike at hotpop dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Session related
 Operating System: Windows 2000 Professional
 PHP Version:  4.3.3
 New Comment:

Please provide a complete testcase without any external dependancies.
(preferrably a zip with all the necessary files)



Previous Comments:


[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=25906edit=1