Passing variables in the PHP $_SESSION between subdomains

listed in answer

Passing variables in the PHP $_SESSION between subdomains
0 votes, 0.00 avg. rating (0% score)

ANSWER:

Why are you suppressing errors for session_start()? That’s exactly where the errors are likely to appear.

Remove the @ symbols and check your php error log.

Also, after the first test, find the session file in your filesystem and add the output of ls -l and the contents of that file to your question. If that doesn’t solve your problem, do the same after the second test.

Session files are usually in /var/lib/php5/ but yours may be different. Check your php.ini if it isn’t there.

by Ladadadada from http://serverfault.com/questions/391303