Re: [PHP-WIN] Handling objects as session vars

2005-10-12 Thread Paul Menard
Marcos, A suggestion to your code changes. Try this first. Note I removed the 'if' statement where you were checking for a valid object instance. I suggest using the PHPHPunction 'is_a' and/or 'is_object'. Start with this... David, This is not a correct statement "sessions work by using c

Re: [PHP-WIN] Handling objects as session vars

2005-10-11 Thread trystano
t;[EMAIL PROTECTED]> To: Marcos R. Cardoso <[EMAIL PROTECTED]> Cc: php-windows@lists.php.net Sent: Tue, 11 Oct 2005 15:57:50 +0100 Subject: Re: [PHP-WIN] Handling objects as session vars Marcos R. Cardoso wrote: i'd try using serialize() to turn the object into a string which can

Re: [PHP-WIN] Handling objects as session vars

2005-10-11 Thread David Collard
Marcos R. Cardoso wrote: i'd try using serialize() to turn the object into a string which can then be put in the session, and then unserialize() when you want it back out again sessions work by using cookies, and cookies can't take php objects ;) I'm trying to use an object as a session var