Page 1 of 1

[SOLVED] session problem

Posted: Tue Dec 09, 2003 12:05 pm
by fxchain
Can't find any answer to this anywhere.
Here is the code:

<?php
session_start();
echo "hello!";
?>

Here is the error on the browser:

Warning: session_start(): open(C:\Program Files\php\sessiondata\sess_993260913c124f4d290caec4b824e0cd, O_RDWR) failed: Permission denied (13) in c:\inetpub\wwwroot\new\guestbook\session.php on line 2

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at c:\inetpub\wwwroot\new\guestbook\session.php:2) in c:\inetpub\wwwroot\new\guestbook\session.php on line 2

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at c:\inetpub\wwwroot\new\guestbook\session.php:2) in c:\inetpub\wwwroot\new\guestbook\session.php on line 2
hello!
Warning: Unknown(): open(C:\Program Files\php\sessiondata\sess_993260913c124f4d290caec4b824e0cd, 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

8O

Posted: Tue Dec 09, 2003 12:10 pm
by microthick
Does that folder actually exist?

Posted: Tue Dec 09, 2003 12:11 pm
by aquila125
you don't have permission to write to the session dir.. check your php.ini

the other errors will disappear if you fix this..

Posted: Tue Dec 09, 2003 12:17 pm
by fxchain
Added permission to C:\Program Files\php\sessiondata
Working now, thanx.