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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php