I am developing a site on a shared server, where I don't have access to the php.ini file. They have the wrong value for session.save_path, and if I try to call session_start() I get the warning "open(/tmp/sess_1a5bf426919efc76660503e1b8c4db2b, O_RDWR) failed".
This is a Win2k server running IIS5 with PHP4. I have the same setup on my home computer, and had the same session.save_path problem (it was set to 'tmp' when the windows temp dir is 'temp'). I fixed it by modifying my php.ini file.
I tried calling ini_alter('session.save_path','/temp') before session_start(), but it seems to have no effect - I get the same error as before, it still tries the '/tmp' directory which doesn't exist. I've tried this same script on my home computer and ini_alter(...) works fine.
Why would it not be working? Is there a security setting that my host might have to prevent me from using local ini values?