shawnm Posted September 6, 2008 Share Posted September 6, 2008 Hey guys, I've been getting tons of advice on sessions and I really appreciate it. I checked for errors with my sessions and the following is what I get: Warning: session_start() [function.session-start]: open(/var/php_sessions/sess_5cc8b9a83090b30febf2d9d15e1461e6, O_RDWR) failed: No such file or directory (2) in /hermes/bosweb/web054/b545/sl.luckyelf/public_html/enter.php on line 4 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /hermes/bosweb/web054/b545/sl.luckyelf/public_html/enter.php:4) in /hermes/bosweb/web054/b545/sl.luckyelf/public_html/enter.php on line 4 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /hermes/bosweb/web054/b545/sl.luckyelf/public_html/enter.php:4) in /hermes/bosweb/web054/b545/sl.luckyelf/public_html/enter.php on line 4 Can anybody explain these errors and tell me how I can fix them? Thanks again everyone. Shawn Link to comment https://forums.phpfreaks.com/topic/123014-session-errors/ Share on other sites More sharing options...
The Little Guy Posted September 6, 2008 Share Posted September 6, 2008 http://www.phpfreaks.com/forums/index.php/topic,209860.0.html Link to comment https://forums.phpfreaks.com/topic/123014-session-errors/#findComment-635198 Share on other sites More sharing options...
PFMaBiSmAd Posted September 6, 2008 Share Posted September 6, 2008 Since that link does not mention anything about the folder that session.save_path is set to not existing, posting that link is rather pointless. shawnm, you already have an existing thread for this problem. Don't start a new thread. And did you read the error message - open (/var/php_sessions/sess_5cc8b9a83090b30febf2d9d15e1461e6, O_RDWR) failed: No such file or directory Link to comment https://forums.phpfreaks.com/topic/123014-session-errors/#findComment-635200 Share on other sites More sharing options...
The Little Guy Posted September 6, 2008 Share Posted September 6, 2008 I posted the link for the headers already sent... then realized it was because of the error before it... 2 things... 1. Do you have some code? 2. any reason you are setting your own location? Link to comment https://forums.phpfreaks.com/topic/123014-session-errors/#findComment-635201 Share on other sites More sharing options...
shawnm Posted September 6, 2008 Author Share Posted September 6, 2008 I don't know how to set my own location. All I was doing is posting the codes people have been recommending in the places that they recommended. I'm not overly PHP savvy... Link to comment https://forums.phpfreaks.com/topic/123014-session-errors/#findComment-635337 Share on other sites More sharing options...
PFMaBiSmAd Posted September 6, 2008 Share Posted September 6, 2008 The error means that the session.save_path setting is pointing to a folder that does not exist - /var/php_sessions/ Either create the folder or change the setting to match an existing folder. Link to comment https://forums.phpfreaks.com/topic/123014-session-errors/#findComment-635368 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.