If you are having problems with PHP sessions, this is almost certainly due to a custom php.ini.
If you have a custom php.ini, it needs to contain the following line for sessions to work:
session.save_path = /tmp/php_sessions
If you don't use a custom php.ini, the above is not required