ID:               33142
 Updated by:       [EMAIL PROTECTED]
 Reported By:      jkump at everestgt dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Session related
 Operating System: Solaris 9
 PHP Version:      5.0.4
 New Comment:

Use 'isset($_SESSION['foo'])' and it will work just fine.
(you're setting it to non-false value..)



Previous Comments:
------------------------------------------------------------------------

[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

Reply via email to