Craig Hopson Posted July 3, 2012 Share Posted July 3, 2012 hi I use sessions now and then i get this error Warning: session_start() [function.session-start]: open(/tmp/sess_53ff81c3601f65a11a9026a079284d89, O_RDWR) failed: Permission denied (13) in /home/chsitesc/public_html/test/index.php on line 2Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/chsitesc/public_html/test/index.php:2) in /home/chsitesc/public_html/test/index.php on line 2Warning: Cannot modify header information - headers already sent by (output started at /home/chsitesc/public_html/test/index.php:2) in /home/chsitesc/public_html/test/config.php on line 14 once i get this error the only way to get rid is to delete a cookie called PHPSESSID with value of = 53ff81c3601f65a11a9026a079284d89. what is this error why do i get (not often)? Link to comment Share on other sites More sharing options...
birbal Posted July 3, 2012 Share Posted July 3, 2012 You probably have not correct permission for write or read or both in tmp folder where session data is being stored Link to comment Share on other sites More sharing options...
Ingolme Posted July 3, 2012 Share Posted July 3, 2012 What does your script look like? Link to comment Share on other sites More sharing options...
Craig Hopson Posted July 3, 2012 Author Share Posted July 3, 2012 i have many pages of scripts across many files all starting <?session_start();include("config.php"); Link to comment Share on other sites More sharing options...
justsomeguy Posted July 3, 2012 Share Posted July 3, 2012 It doesn't really matter what your other sites are doing, the first error message says that PHP does not have permission to open the file in the tmp directory. That sounds like a server setup problem. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now