note 36800 deleted from function.is-a by didou

From: Date: Mon, 16 Feb 2004 13:13:14 +0000
Subject: note 36800 deleted from function.is-a by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-65210@lists.php.net to get a copy of this message
Note Submitter: will@hotgazpacho.org ---- The previous note is incorrect. You need not manually serialize and deserialize objects for use in sessions. This is handled automatically by PHP. See Chapter 13 of the manual, under section entitled "Serializing objects - objects in sessions" However, it is correct in that you MUST include the class definition BEFORE starting a session. [Editor's note : PHP5 has the __autoload() feature - so, the __autoload() will be called if it's available to load the class. So when trying to deserialize an object which is an instance of a class which is not still known to PHP __autoload() will be called. andrey]

« previous php.notes (#65210) next »