[SOLVED] session problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
fxchain
Forum Newbie
Posts: 9
Joined: Tue Dec 09, 2003 12:05 pm

[SOLVED] session problem

Post 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
microthick
Forum Regular
Posts: 543
Joined: Wed Sep 24, 2003 2:15 pm
Location: Vancouver, BC

Post by microthick »

Does that folder actually exist?
User avatar
aquila125
Forum Commoner
Posts: 96
Joined: Tue Dec 09, 2003 10:39 am
Location: Belgium

Post 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..
fxchain
Forum Newbie
Posts: 9
Joined: Tue Dec 09, 2003 12:05 pm

Post by fxchain »

Added permission to C:\Program Files\php\sessiondata
Working now, thanx.
Post Reply