Re: sessions help

From: Date: Thu, 13 Jun 2002 20:57:15 +0000
Subject: Re: sessions help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-102058@lists.php.net to get a copy of this message
On Thursday, June 13, 2002 at 9:46:10 PM, you wrote: > First, I load Doc 1 (to set the session variable). > Then I load Doc 2 to retrieve the variable. When doc 2 runs, I get the > following: > > -------------------------------------------------------------------------------------------------------------- > Warning: Undefined variable: _SESSION in c:\...\getsessionvar.php on line 17 > Node is . > > -------------------------------------------------------------------------------------------------------------- > Line 17 is the } after the line return $_SESSION['node']; > It doesn't seem to know about $_SESSION. > Can someone help me out? Do you have a call to start_session() at the top of both files? If not, that's what's missing. -- Stuart

« previous php.general (#102058) next »