Win2003 Server with PHP5 configured through ISAPI.
When I change the php.ini file to have session.save_path = "/tmp" I get message like:
"open("/tmp\session<uglynumber>", O_RDWR) No such file or directory" from the session_start() function.
If I undefine the session.save_path in php.ini (which by the way seems to need to be in c:\windows - the %Path% seems to be ignored) then the session_start does not geneate any errors but the following code prints 'session value is:'
session_save_path("/tmp"); // Note same behavior whether this is used or not without session.save_path defined in php.ini
session_start();
$GLOBALS['ses'] = 'Test of Session';
session_register('ses');
print ' session value is:' . $_SESSION['ses'];
Any ideas how to get sessions to work correctly under Win2003 Server? I'm sure I'm missing something simple and that leaving the session.save_path = undefined is telling the system to ignore session operations.
One additonal question:
1) I'd assumed the session_save_path was relative to the doc_root so the actual directory on the system using "/tmp" as the session.save_path value equates to c:\inetpub\wwroot\website\tmp. Or does it use a system path and I should be using something like c:\temp?
Getting this stuff to play on Win2003 server is enough to get me to use ASP!
tony