Jump to content

Recommended Posts

Hi all,

 

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:

 

if ($ss != "")
{
  session_id($ss);
}

session_start();

 

The variable $ss is used to pass the session id between the http: and https: sections of the site.

 

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.

 

TIA

 

Link to comment
https://forums.phpfreaks.com/topic/63420-php-warning-session_start-not-sure-why/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.