Ron Austin;10996124 wrote:How do I set the error_reporting to E_ALL?
See [man]configuration.changes[/man] and [man]error_reporting[/man] in the PHP manual for some options of where/how you can set this.
EDIT: Forgot to mention... you should do this first before attempting any further debugging; it would be quite silly to waste your time (and ours!) trying to debug issues when PHP is trying to output helpful error messages that are being masked by the current error_reporting level.
Ron Austin;10996124 wrote:I start the script and then start the session so there is no other output first.
There might not be any other intentional output, sure, but are you positive that there is no unintentional output (such as any whitespace before the first <?php opening tag)?
Ron Austin;10996124 wrote:I tried to use cookies and that didn't work either.
Either you tried to use them incorrectly, or else there is a larger problem at hand (such as data being sent as output before you attempted to set the cookie).
Ron Austin;10996124 wrote:What else could be wrong or what else can I do to pass variables from one scipt to another one?
See my debugging technique above in regards to verifying that the session ID is propagated from one page to the next.
You could also take a look at the raw HTTP headers being sent in reply by the server for both page requests; if you don't see the Set-Cookie header, then something (such as data being sent as output, causing HTTP headers to be sent at that point) is preventing PHP from altering the HTTP headers to set the cookie.
Also, could you do a [man]phpinfo/man and show us the values of the PHP directives prefixed with 'session.' ?