I have a PHP script which uses session_start(); which works perfectly on linux server. However, when I try the same script on windows server, I run into permissions problems, presumably on the /tmp directory. I can get round the problem by first creating a 'session' directory just above wwwroot level and then using:
session_save_path('../../session'); // from a sub-directory in the main web, and then:
session_start();
In the PHP info file, session support is enabled, but session.auto_start is off - could this be the reason?
Regards



Reply With Quote



Bookmarks