At 5:00 PM -0800 3/3/11, Scott Baker wrote:
On 03/03/2011 04:31 PM, tedd wrote:

 > Simple answer -- put session_start() at the start of your code -- first

Of index.php or header.php? You lost me.

Scott Baker - Canby Telcom


The statement should be at the start of every php file that has php code in it.

For example, if you have three web pages (index.php, services.php, and contact.php) AND you have php code in each that share session data, then the first statement in every page should be:

<?php  session_start;

Here's a working example:

The code is there.




PHP General Mailing List (
To unsubscribe, visit:

Reply via email to