XML session

From: Date: Thu, 12 Aug 2004 14:05:46 +0000
Subject: XML session
Groups: php.general 
Request: Send a blank email to php-general+get-193569@lists.php.net to get a copy of this message
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!

« previous php.general (#193569) next »