Re: session vars

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sessions only have access to Global Vars.

http://us3.php.net/manual/en/ref.session.php

I understand it's because the local vars inside a function are free'd when you exit the function, and the actual post to the session record occurs during script wrappup operations, long after exiting the function.

hope this helps,

Warren

At 08:58 AM 3/21/2006, tedd wrote:
Hipeople.

I've a system where i use session and all is working fine. But has something
that don't work and i can't to find the cause.

When a use the include function, the file included don't see the session
vars.

Anyone knows why it's happen?

Thanks.

--
---------------------------------------------------
João Cândido de Souza Neto


No, but try this.

http://www.weberdev.com/get_example-4349.html

tedd
--
--------------------------------------------------------------------------------
http://sperling.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux