Re: XML session

From: Date: Thu, 12 Aug 2004 14:59:22 +0000
Subject: Re: XML session
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-193580@lists.php.net to get a copy of this message
Miguel Manso wrote:
Hi. I'm trying to create a session support where i can keep persistent objects. I'm using XML to structure the data in the session file. But i've come into a problem. When i execute the following code the (-->>) marked instruction simply breaks the function execution:
    $sess = $xml->documentElement;
    -->>$sessIdElem = $xml->createElement(session_id());
    $sessVarsElem = $xml->createElement("vars");
    $sessVarsNode = $sessIdElem->appendChild($sessVarsElem);
    $sess->appendChild($sessIdElem);
In the HTML output i get the following error: Exception thrown without a stack frame in Unknown on line 0 I read the docs on createElement and it doesn't throw exectpions... Can anyone tell me waht i'm doing wrong? Thanks!
Forgot to say that this code is executed on the __destruct() function of a class.

« previous php.general (#193580) next »