Hello,
I amb developing a web in php with xajax, and I've got some classes.
My idea is the following: when a person logs in the webpage, it creates a session and I fill and object with the characteristics of the user (this object is from a class).
The problem I have is that $session can't save ans instance of an object (or I don't know how this can be done). I mean, it's possible to do "$session["myVar"]=new myClass()" ? An thats why everytime the user goes from one side to another of the web, I have to instance the object again and again, and I think that this it is not necessary cause the characteristics of the user doesn't change.
If it's not I don't know how can I make a modular webpage if sessions and classes are not compatible. Can someone help me?
Thanks in advance
Maria