medaswho Posted March 13, 2009 Share Posted March 13, 2009 function session_start() is like the second line in my script but i get these two warnings and as if that is not maddening enough it stopped working without my ever having made a change to the script. was working, now not! these are the warnings: Warning: session_start() [function.session-start]: open(/tmp/sess_583ee6cd28fe47c1898b3c2e292f6f7b, O_RDWR) failed: Permission denied (13) in /home/rhythmnr/public_html/cms/gigs/gigs.php on line 2 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/rhythmnr/public_html/cms/gigs/gigs.php:2) Quote Link to comment https://forums.phpfreaks.com/topic/149201-how-can-something-work-one-day-and-not-the-next/ Share on other sites More sharing options...
corbin Posted March 13, 2009 Share Posted March 13, 2009 The user under which Apache is running doesn't have access to tmp. Either change the directory to something that you're using does have access to, or figure out why you can't access /tmp any more. Quote Link to comment https://forums.phpfreaks.com/topic/149201-how-can-something-work-one-day-and-not-the-next/#findComment-783503 Share on other sites More sharing options...
medaswho Posted March 13, 2009 Author Share Posted March 13, 2009 well i don't know why it stopped working, but it was an easy fix. the function 'session_save_path("path");' where "path" is a directory of my choosing placed in the script before 'session_start();'. Quote Link to comment https://forums.phpfreaks.com/topic/149201-how-can-something-work-one-day-and-not-the-next/#findComment-783519 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.