Re: a DOM object in $_SESSION ?

From: Date: Fri, 17 Aug 2007 10:05:06 +0000
Subject: Re: a DOM object in $_SESSION ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-260947@lists.php.net to get a copy of this message
Per Jessen wrote: > Does anyone know if this works? I've been trying out a few things, and > it doesn't seem to work. I.e. the object is there, but the contents > aren't. I think it wont directly but it should be solvable by creating an class which extends DomDocument but also implements __sleep/__wakeup calls to serialise itself correctly. This may add significant overhead and in practice you may be better just storing the XML itself in the session and create a DomDocument object only when you need it. YMMV. Col

« previous php.general (#260947) next »