note 25402 deleted from language.oop by didou

From: Date: Sun, 07 Dec 2003 02:39:16 +0000
Subject: note 25402 deleted from language.oop by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-61546@lists.php.net to get a copy of this message
Note Submitter: dhoffutt-dontlike@spam-airmail.net ---- _SESSIONS and CLASSES / OBJECTS One may instantiate an object as a session variable, however every single page that your object passes through must include the code of the class. Example: include("dbObject.php"); session_start(); if (!is_object($_SESSION['testdb'])) { $_SESSION['testdb']= new dbObject; } $_SESSION['testdb']->do_your_class_functions(); Bit o' trivia worth mentioning: I recently switched to Mozilla 1.1 from IE. When attempting to test multiple session instances from same workstation, each instance of Mozilla on the same workstation used the same session instance as the previous Mozilla. Netscape 6 does the same thing. So, to test multiple sessions simultaneously from a single workstation, use Internet Explorer.

« previous php.notes (#61546) next »