#33142 [Opn->Bgs]: Session info not getting saved correctly

From: Date: Wed, 25 May 2005 22:37:21 +0000
Subject: #33142 [Opn->Bgs]: Session info not getting saved correctly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-79510@lists.php.net to get a copy of this message
 ID:               33142
 Updated by:       sniper@php.net
 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


Thread (12 messages)

« previous php.bugs (#79510) next »