I just tried adding session_start() to the beginning of both files. When I 
load Doc 1, I get this warning twice(!):

Warning: Cannot send session cache limiter - headers already sent (output 
started at c:\program files\apache group\apache\htdocs\wan\sessions.php:7) 
in c:\program files\apache group\apache\htdocs\wan\sessions.php on line 9

Same warning for Doc 2.

8-|

???


At 02:57 PM 6/13/2002, you wrote:
>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

Reply via email to