Dear PHP Forum,
Good day. How is everyone doing? I'm currently using PHP 4.3.0 for Windows; I believe it's the CGI flavour of the application. I'm running it on XP with IIS. I've got some problems trying to get sessions started. When I try to initialize sessions i.e. with
session_start();
session_register("any_variable");
I get the following errors:
Warning: session_start() [function.session-start]: open(C:\Program Files\PHP\sessiondata\sess_45479dddc836f5c62e624e8591fef260, O_RDWR) failed: Permission denied (13) in C:\Inetpub\wwwroot\PHP\TMPatb18cbjh2.php on line 2
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\Inetpub\wwwroot\PHP\TMPatb18cbjh2.php:2) in C:\Inetpub\wwwroot\PHP\TMPatb18cbjh2.php on line 2
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\Inetpub\wwwroot\PHP\TMPatb18cbjh2.php:2) in C:\Inetpub\wwwroot\PHP\TMPatb18cbjh2.php on line 2
Warning: Unknown(): open(C:\Program Files\PHP\sessiondata\sess_45479dddc836f5c62e624e8591fef260, O_RDWR) failed: Permission denied (13) in Unknown on line 0
Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:\Program Files\PHP\sessiondata) in Unknown on line 0
I disabled the display_error in the php.ini but sessions still don't work. I need help. Your response would be greatly appreciated. Thanks a lot.