I really hope someone knows more than I do about this function because it's giving me a MAJOR HEADACHE.
I have a site that I made for a company, with two separate secure backends. One is linked off the main page and made available to every employee, and one is only for the employees at the main office.
The problem I am having is when an employee from the main office logs into either the public or private backend, then without logging out he/she moves to the other backend (which they should be able to do because it's the same login/password and authentication stuff, just one more or less check) it throws these errors:
Warning: open(/tmp/sess_a9de94d4c6fda47115adf87d8776200d, O_RDWR) failed:
Permission denied (13) in /usr/www/users/ourtown2/update/index.php4 on line 3
Warning: Cannot add header information - headers already sent by (output started at
/usr/www/users/ourtown2/update/index.php4:3) in /usr/www/users/ourtown2/update/index.php4 on line 6
Warning: open(/tmp/sess_a9de94d4c6fda47115adf87d8776200d, O_RDWR) failed:
Permission denied (13) in Unknown on line 0
Warning: Failed to write session data (files). Please verify that the current
setting of session.save_path is correct (/tmp) in Unknown on line 0
So I figured the PHP session ID cookie on the client was locked to a directory, so I added this to every page:
session_set_cookie_params(0,'/');
Before my session_start(); but it's still throwing out the same errors. Any ideas no matter how remote would be appreciated.
Thanks much,
Tom 🙂