note 30036 deleted from language.oop.serialization by danbrown

From: Date: Sat, 07 Nov 2009 19:13:02 +0000
Subject: note 30036 deleted from language.oop.serialization by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-162607@lists.php.net to get a copy of this message
Note Submitter: okoro22 at yahoo dot com ---- I had a problem using session_register() to globally store a class that I was working with. I hope my solution will help beginners understand this concept of sessions in PHP When you use session_register() to store any object, yes you don't need to call session_start() unless you want to. However in other pages where you want to use that object, you must call session_start() after you have included the class definition of the file. Failure to do this will unserlize your object without its functions and it will be pretty useless. Hope it helps someone. Cheers.

« previous php.notes (#162607) next »