note 29787 added to language.oop
| From: | oscargrouch at rack1 dot php dot net | Date: | Tue, 25 Feb 2003 06:28:28 +0000 |
| Subject: | note 29787 added to language.oop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-44477@lists.php.net to get a copy of this message | ||
hey everybody, sorry if this question is a little remedial, but i'm sort of a scope klutz. for
some reason, i can't access $_SESSION within a class no matter how hard i try or where i place
a "global $_SESSION;" statement. i tried declaring the class before and after
session_start(), no dice either way. i can access $_SESSION immediately outside of the class
declaration in the same include file, but for some stinkin' reason, i just can't see the
session!
any ideas warmly appreciated,
__oscar the grouch
--
http://www.php.net/manual/en/language.oop.php
http://master.php.net/manage/user-notes.php?action=edit+29787
http://master.php.net/manage/user-notes.php?action=delete+29787
http://master.php.net/manage/user-notes.php?action=reject+29787