fazzfarrell Posted April 20, 2007 Share Posted April 20, 2007 I keep getting this error and I can't get rid of it any one help? Warning: session_start() [function.session-start]: open(/tmp/sess_72b9bf3e0228df49654f24222e3b7f06, O_RDWR) failed: Permission denied (13) in /home/sites/st-ives.com/public_html/careers-red.php on line 3 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/sites/st-ives.com/public_html/careers-red.php:3) in /home/sites/st-ives.com/public_html/careers-red.php on line 3 Link to comment https://forums.phpfreaks.com/topic/47879-solved-warning-session_start-error/ Share on other sites More sharing options...
Michael Lasky Posted April 20, 2007 Share Posted April 20, 2007 Check your php ini to see where it's trying to store the session files. You (or actually the php process?) probably don't have access to that directory. The second error is related to the first... probably because it's outputting the session error message and then trying to send a header. That might not be the answer, but it's where I'd start looking. Link to comment https://forums.phpfreaks.com/topic/47879-solved-warning-session_start-error/#findComment-233966 Share on other sites More sharing options...
taith Posted April 20, 2007 Share Posted April 20, 2007 on line 3 of careers-red.php, your echo/print/outputing something... your session_start(); has to be at the VERY BEGINNING... top of everything. Link to comment https://forums.phpfreaks.com/topic/47879-solved-warning-session_start-error/#findComment-233967 Share on other sites More sharing options...
neel_basu Posted April 20, 2007 Share Posted April 20, 2007 on line 3 of careers-red.php, your echo/print/outputing something... your session_start(); has to be at the VERY BEGINNING... top of everything. I dont think its a header already sent problem in his case cause it not firing headers sent Error. Its sending Permission denied error. Link to comment https://forums.phpfreaks.com/topic/47879-solved-warning-session_start-error/#findComment-234181 Share on other sites More sharing options...
cyrilsnodgrass Posted April 20, 2007 Share Posted April 20, 2007 I think MichaelLasky is right Look in php.ini. the directory or file specified in session.save_path needs permissions modified. Link to comment https://forums.phpfreaks.com/topic/47879-solved-warning-session_start-error/#findComment-234228 Share on other sites More sharing options...
fazzfarrell Posted April 23, 2007 Author Share Posted April 23, 2007 I specified tha save path outside my root folder and now it works thanks for your help! Link to comment https://forums.phpfreaks.com/topic/47879-solved-warning-session_start-error/#findComment-235861 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.