PHP Warning: session_start() - not sure why
I'm trying to fix a problem with a site which uses sessions. I keep seeing this error in the error log:
PHP Warning: session_start(): open(/tmp/sess_6d5f9217920bb7a27c7108fec4587a20, O_RDWR) failed: Permission denied (13) in /home/public_html/includes/inc.php on line 1697
inc.php is the main site include, which is included on every page. The session handling bit looks like this:
The variable $ss is used to pass the session id between the http: and https: sections of the site.
if ($ss != "")
Any idea as to why I'm getting this warning?
Sessions are being created fine for both http and https.
The only other possibly relevant bit of info is that it's set to use_only_cookies.
Happy to provide more info if necessary.