Re: a DOM object in $_SESSION ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux