Re: SESSION variables

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

 



On Sat, Oct 11, 2008 at 7:49 PM, Ron Piggott <ron.php@xxxxxxxxxxxxxxxxxx> wrote:
> I am programming a blog.
>
> index.php sets up the layout for the web page.  This includes the
> heading, left hand and bottom menus.
>
> The content  is loaded by the command:
>
> include($filename);
>
> the $_SESSION variables aren't available to files like blog.php .  The
> session variables only work in the initial file, index.php.

    Did you remember to add session_start() to the head of the master
file that's including the other files?

-- 
</Daniel P. Brown>
More full-root dedicated server packages:
Intel 2.4GHz/60GB/512MB/2TB $49.99/mo.
Intel 3.06GHz/80GB/1GB/2TB $59.99/mo.
Intel 2.4GHz/320/GB/1GB/3TB $74.99/mo.
Dedicated servers, VPS, and hosting from $2.50/mo.

-- 
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