Re: SESSION variables

From: Date: Sat, 11 Oct 2008 23:59:53 +0000
Subject: Re: SESSION variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-281732@lists.php.net to get a copy of this message
On Sat, Oct 11, 2008 at 7:49 PM, Ron Piggott <ron.php@actsministries.org> 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.

« previous php.general (#281732) next »