Re: [PHP-WIN] Ok, next step/question

2008-01-11 Thread James Crow
That is correct. The session_start() command must appear in each script that needs to access the $_SESSION variable. Thanks, James On Fri, 2008-01-11 at 15:57 +0200, Jacob Kruger wrote: > Ok. Just realised that you might have meant that I need that > session_start(); statement on the first line

Re: [PHP-WIN] Ok, next step/question

2008-01-11 Thread Jacob Kruger
Ok. Just realised that you might have meant that I need that session_start(); statement on the first line of every page? Stay well Jacob Kruger Blind Biker Skype: BlindZA '...Fate had broken his body, but not his spirit...' - Original Message - From: "Jacob Kruger" <[EMAIL PROTECTED]

Re: [PHP-WIN] Ok, next step/question

2008-01-11 Thread Jacob Kruger
Already got that one on the very first line of the initial (index.php) page, and I am assigning an array element in that first page, which seems to work fine. Stay well Jacob Kruger Blind Biker Skype: BlindZA '...Fate had broken his body, but not his spirit...' - Original Message - Fro

Re: [PHP-WIN] Ok, next step/question

2008-01-11 Thread James Crow
Jacob, You must issue a session_start() prior to outputting any code to the browser for sessions to work. There are tons of different ways to configure things, but session_start() as the first thing in the script should get you started. Here is a basic example: index.php: ##

[PHP-WIN] Ok, next step/question

2008-01-11 Thread Jacob Kruger
Now got that main page redirecting/spitting out the relevant JS code to get it to move on to the next page, but there I was trying to ascertain if the session variable/array element had actually been set, and, for whatever reason, no PHP code seems to be executing in main.php. Below is what I