Re: Re: a DOM object in $_SESSION ?

From: Date: Fri, 17 Aug 2007 10:20:09 +0000
Subject: Re: Re: a DOM object in $_SESSION ?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-260949@lists.php.net to get a copy of this message
Colin Guthrie wrote: > 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. Hi Colin Someone else just suggested the same - I think I might just store the XML itself. /Per

« previous php.general (#260949) next »