ID: 33142
User updated by: jkump at everestgt dot com
Reported By: jkump at everestgt dot com
Status: Bogus
Bug Type: Session related
Operating System: Solaris 9
PHP Version: 5.0.4
New Comment:
That is fine. I will try that but, this is the error that I am getting
when I come back in and nothing is available in the $_SESSION
superglobal.
[24-May-2005 16:06:22] PHP Warning: session_start() [<a
href='function.session-start'>function.session-start</a>]: Node no
longer exists in
/export/home/httpd/corp/my_everestkc_net/modules/BillOnline/session.class.php
on line 64
[24-May-2005 16:06:22] PHP Warning: session_start() [<a
href='function.session-start'>function.session-start</a>]: Cannot send
session cookie - headers already sent by (output started at
/export/home/httpd/corp/my_everestkc_net/modules/BillOnline/session.class.php:64)
in
/export/home/httpd/corp/my_everestkc_net/modules/BillOnline/session.class.php
on line 64
[24-May-2005 16:06:22] PHP Warning: session_start() [<a
href='function.session-start'>function.session-start</a>]: Cannot send
session cache limiter - headers already sent (output started at
/export/home/httpd/corp/my_everestkc_net/modules/BillOnline/session.class.php:64)
in
/export/home/httpd/corp/my_everestkc_net/modules/BillOnline/session.class.php
on line 64
These show up on the second trip into the code. I cant initialize the
session again.
When I assign stuff to $_SESSION['foo'] and then exit the script. come
back into the script via a link on the page. The session is no longer
valid and the $_SESSION info is gone. The code works correctly in php
4.3.11. and it fails on 5.0.4.
I can try and setup an external area so you can see what is happening.
THanks
Previous Comments:
------------------------------------------------------------------------
[2005-05-26 00:37:20] [EMAIL PROTECTED]
Use 'isset($_SESSION['foo'])' and it will work just fine.
(you're setting it to non-false value..)
------------------------------------------------------------------------
[2005-05-25 18:57:15] jkump at everestgt dot com
Description:
------------
When using session_start() and coming into the page a second time. The
$_SESSION[] information is not getting saved correctly. When returing
to the page in an appropriate amount of time the session_start
functions says the node no lionger exists. Works correctly in php
4.3.11 but not in 5.0.4
Reproduce code:
---------------
<?php
session_start();
if (!$_SESSION["foo"]) {
$_SESSION["foo"] = 45;
} else {
print "found\n";
}
?>
Expected result:
----------------
secnd time called should say
found.
Actual result:
--------------
Get warning messages about node no longer valid.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33142&edit=1