RE: [PHP] session variables and classes?

From: Date: Wed, 01 May 2002 17:25:47 +0000
Subject: RE: [PHP] session variables and classes?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-95545@lists.php.net to get a copy of this message
[snip] does anyone know if a session variable set within a class is accessible outside the class and by other pages? [/snip] I have not tested this, but I do use sessions quite a bit. All session variables are registered as global variables and therefore should be available to other processes and pages. You could perform an easy test by creating a class containing a registered session variable and attempt to call that variable from another page. Jay Blanchard

« previous php.general (#95545) next »