I have a dedicated server which needed a rebuild and a slightly older version of php has been used 4.1.2. All sites that use php are ok apart from those that use sessions. The following error message appears when I try to load a page with a session:
Warning: Cannot send session cookie - headers already sent by (output started at /web/owners/auth_user_BACKUP.php:7) in web/owners/auth_user_BACKUP.php on line 104
Warning: Cannot send session cache limiter - headers already sent (output started at web/owners/auth_user_BACKUP.php:7) in web/owners/auth_user_BACKUP.php on line 104
Warning: Cannot add header information - headers already sent by (output started at web/owners/auth_user_BACKUP.php:7) in web/owners/auth_user_BACKUP.php on line 144
THE 2 files it's referring to are a session start command and a set cookie command.
I'm pretty sure it's got something to do with my php.ini settings. Does anyone recognise these error messages? If so, any advise would be appreciated.
My php.ini session related settings are (these are identical to previous settings when all was working):
session.auto_start Off Off
session.cache_expire 180 180
session.cache_limiter private, must-revalidate private, must-revalidate
session.cookie_domain no value
session.cookie_lifetime 0
session.cookie_path /
session.cookie_secure Off
session.entropy_file no value
session.entropy_length 0
session.gc_maxlifetime 1440
session.gc_probability 1
session.name PHPSESSID
session.referer_check no value
session.save_handler files
session.save_path /tmp
session.serialize_handler php
session.use_cookies On
F.