Re: PHP Sessions

From: Date: Wed, 04 Dec 2002 14:15:01 +0000
Subject: Re: PHP Sessions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-126981@lists.php.net to get a copy of this message
Good point -- are the included files functions, or other stuff?? function myfunc() { return $_SESSION['something']; } will not work, but: function myfunc() { global $_SESSION; return $_SESSION['something']; } will... J on 05/12/02 1:14 AM, Ryan Gibson (ryan_gibson@jmp-partnership.co.uk) wrote: > May be a silly question but are u using a global statement in the include > files, just a thought > > > on 4/12/02 1:11 pm, Andy Kirk at andy@circulation-solutions.net wrote: > >> Can anyone tell me if session variables should be available to scripts that >> are included into the main script? >> >> It appears to me that they are not unless I am really missing the point. >> >> >> > Justin French -------------------- http://Indent.com.au Web Development & Graphic Design --------------------

« previous php.general (#126981) next »