LaundroMat
Programmer
Hi,
Is it first of all possible to store an object in a session variable? Eg:
On the page where I execute the above code, a print_r($_SESSION["user"]) gives me a correct overview of the object.
However, when moving to another page, the same print_r($_SESSION["user"]) gives me this:
I didn't find much about this via google. Anyone can explain what this means? Needless to say, the object is no longer accessible.
Thanks in advance!
Is it first of all possible to store an object in a session variable? Eg:
Code:
$user = new user();
// $user->login returns MSG_LOGGEDIN if ok.
if ($user->login($login, $pw) {
$_SESSION["user"] = $user;
}
On the page where I execute the above code, a print_r($_SESSION["user"]) gives me a correct overview of the object.
However, when moving to another page, the same print_r($_SESSION["user"]) gives me this:
Code:
__PHP_Incomplete_Class Object ( [__PHP_Incomplete_Class_Name] => user [login] => LaundroMat [userid] => 1 [loggedin] => MSG_LOGGEDIN )
I didn't find much about this via google. Anyone can explain what this means? Needless to say, the object is no longer accessible.
Thanks in advance!