Привет! Marek Kilimajer wrote: > This won't work, you must register it within a session, just remember to > declare the class befor session_start()
This can be pretty risky if your object contains references to external objects. Works okay for insulated instances, though. Yet I would suggest not trusting sessions with objects. You never know how your class is going to evolve on time and you never know how sessions are going to evolve on time either (just think of the register globals thingy). I'd rather map object attributes to a good old table of mine and be sure I can build it back whenever I want to, no matter what surprises lie ahead on technology boulevard. Well, almost sure :) пока Альберто @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@ LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu? lOrD i'M sHiNiNg... YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE tHe TeSt, YeS iT iS ThE tEsT, yEs It Is tHe TeSt, YeS iT iS ThE tEsT, yEs It Is....... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php