Re: Re: session vars
| From: | João Cândido de Souza Neto | Date: | Thu, 23 Mar 2006 11:40:21 +0000 |
| Subject: | Re: Re: session vars | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-232447@lists.php.net to get a copy of this message | ||
John Wells wrote:
> Ummmm, is your top.php code being printed AT ALL? Because in the code
> you gave us, you're attempting to include "topo.php".
>
> HTH,
> John
>
> On 3/21/06, João Cândido de Souza Neto <joao@consultorweb.cnt.br> wrote:
>> tedd wrote:
>>
>> > Hi:
>> >
>> > I hate this.
>> >
>> >>Ok guy, don't fight with me. hehehe
>> >>
>> >>Follow's all code of files.
>> >
>> > Yeah ! Where's "rodape.php" ?
>> >
>> > If we're going to spend our time looking at your code, shouldn't you
>> > spend the time to provide all of it?
>> >
>> > tedd
>> >
>>
>> I'm sorry for do that.
>>
>> I'm stressed today. Forgive me.
>>
>> Follow's the rodape.php code:
>>
>> <table width="780" height="61" border="0"
>> cellpadding="0" cellspacing="0"
>> bgcolor="#FFFFFF" align="center">
>> <tr>
>> <td height="61" bgcolor="#009EFF">
>> <div align="center">
>> <font color="#FFFFFF">
>> <strong>
>> Buffet Online -
>> www.buffetonline.com.br
>> </strong>
>> <br>
>> Copyright (c) 2006 - Todos os
>> direitos reservados
>> </font>
>> </div>
>> </td>
>> </tr>
>> </table>
>>
>> --
>> ---------------------------------------------------
>> João Cândido de Souza Neto
>> Web Developer
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
I found the error. If you lookt at carefully, you'll see that the var
$_SESSION["root"] has the "http://localhost/buffets/" value, then, when i
use include($_SESSION["root"]."top.php") it losts the session variables. I
just change to include("../top.php") and then it works fine.
--
---------------------------------------------------
João Cândido de Souza Neto
Web Developer