[PHP] Object instance and session

2007-07-24 Thread Stefano Esposito
Hi all, i've a self-defined class describing an user. In the login page i create an instance of the user object and store it in $_SESSION['user']. When accessing $_SESSION['user'] from other pages (of course I do require('user.php'); and session_start();) i got this errors: Warning:

Re: [PHP] Object instance and session

2007-07-24 Thread Stut
Stefano Esposito wrote: Hi all, i've a self-defined class describing an user. In the login page i create an instance of the user object and store it in $_SESSION['user']. When accessing $_SESSION['user'] from other pages (of course I do require('user.php'); and session_start();) i got this