Originally posted by ScubaKing22
session_start() needs to be the VERY first thing on a page; no whitespace, anything before it.
The white space thing I am not sure about, I am pretty sure white space is not parsed in php code. So therefore several blank lines before will not be a problem.
Anyway, I know that he is not using an object approach, but if so the include or require of the class file better come before the session_start or php will spit out errors when it tries to unserialize session registered objects.
Granted the session start needs to come before the variable assignment though.
Also, if he is using the get instead of post method to transmit data to the server then he needs to send the session id as part of the query string. If the post method is being used he needs to look in the php.ini file and insure that the session set transid is turned on. If either of these is not occuring then the session data will not be passed to the next page.
John