NYCPHP Meetup

NYPHP.org

[nycphp-talk] $_SESSION in Static function

Mikko Rantalainen mikko.rantalainen at peda.net
Thu May 11 06:03:32 EDT 2006


Vamsidhar Bethanabatla wrote:
> [...] I was under the impression that $_SESSION 
> need not be defined as 'global' within class methods but this wrapper class 
> initially failed when the system was deployed on FreeBSD machine. It worked 
> when I added 'global $_SESSION' within the above mentioned static methods. I 
> am not aware of the reason. It worked fine on my machine (windows 2000 
> professional). Any reason available for the problem will be appreciated.

Did you check PHP version? IIRC, older versions of PHP didn't have 
super globals at all...

-- 
Mikko




More information about the talk mailing list