#10063 [Com]: Session variable aren't visible from class

From: Date: Tue, 20 Jul 2004 14:59:15 +0000
Subject: #10063 [Com]: Session variable aren't visible from class
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-62738@lists.php.net to get a copy of this message
ID: 10063 Comment by: chest-hairy1794 at hotmail dot com Reported By: thierry dot bertin at videotron dot ca Status: Closed Bug Type: Class/Object related Operating System: linux mandrake 7.2 PHP Version: 4.0.4pl1 New Comment: <a href=http://c--asia-warezmp3.da.ru>chest hairy</a> Previous Comments: ------------------------------------------------------------------------ [2001-03-29 13:01:17] hholzgra@php.net you have to use global in every class method class methods behave exactly like normal functions in this context, a global declaration within the constructor is local to the constructor method itself and will *not* be remembered in the other methods ------------------------------------------------------------------------ [2001-03-29 12:49:31] thierry dot bertin at videotron dot ca I hope you excuse me for my poor english... So, i try to use a session and sessions variables in php. It's work fine, but when i try to use a variable into a object class, the values of my variables aren't visible thru the clas and function of this class. I declare the variables as global in the class constructor, then i can acces to the value but not in a function of this class. regards Thierry ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=10063&edit=1

« previous php.bugs (#62738) next »