Hi, Jim To avoid this kind of problem it would also help to provide an autoloader-function as PHP then tries to load the class-definition by this autoloader ;) Using that you'd bind yourself to have a pretty good system for php-classes and you'd avoid having problems like that. I'd in fact have never thought about a solution like that - but that may comes from the fact that I always use auto-loader-scripts ;) One additional info: I had some problems putting an instance of *SimpleXmlElement *into the session ... The only valuable info I found was this error: *Fatal error: Exception thrown without a stack frame in Unknown on line 0* Here's the solution and description why: http://stackoverflow.com/questions/4624223/object-in-session-fatal-error-exception-thrown-without-a-stack-frame-in-unknow#answer-4624256 Bye Simon 2012/3/2 Jim Giner <jim.giner@xxxxxxxxxxxxxxxxxx> > "Stuart Dallas" <stuart@xxxxxxxx> wrote in message > news:7EEBA658-C7F6-4449-87BD-AAC71B41E715@xxxxxxxx... > > Make sure the class is declared before you call session_start. > ***** > > You Da Man!! > > I see now why it makes a difference. The session tries to bring back the > data but doesn't know how to handle the objects in the session vars since > the objects haven't been defined. Never would of thought of that! > > Thank you for being there! :) > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >