Re: session vars

From: Date: Tue, 21 Mar 2006 17:38:08 +0000
Subject: Re: session vars
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-232334@lists.php.net to get a copy of this message
João Cândido de Souza Neto 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. > I'll try to explain better my problem. After start the session and setting all of session variables. I have a file named top.php that has the follow code in: <a href="<? echo $_SESSION["root"]; ?>/about.php"> About system </a> I've too a file named page.php that has the follow code in: <? session_start(); ?> ... Some codes ... <? include("top.php"); ?> ... some codes ... By this way, the file top.php ought to see the $_SESSION["root"] variable, but it isn't happening. Just to remember, my register_global is defined to off. Thanks for your tips. -- --------------------------------------------------- João Cândido de Souza Neto Web Developer

« previous php.general (#232334) next »