Hello,
i've jused the article about sessions on this site, it helped me a lot.
My problem is only, i can't register an object as a session var. Well, ik can register it but on the next screen i can't call the data saved into the object 🙁
This is my piece of code:
session_start();
class auth_user {
var $naam;
var $achternaam;
var $_email;
function register($_naam,$_achternaam,$_email) {
$this->naam= $_naam;
$this->achternaam= $_achternaam;
$this->email= $_email;
}
function getName(){
return $this->naam;
}
}
$user = new auth_user;
$user->register($naam,$achternaam,$_email);
session_register("user");
then on the other page, i recall the session var's:
session_start();
$user= $HTTP_SESSION_VARS[suser];
but in this way, i can't recall the data saved into the object 🙁
This:
$user->naam;
doesn't work. Does anyone knows how i can make this work/what i'm doint wrong??