title: session_start(): Session data file is not created by your uid
body: <p>I want to store the created sessions in a directory above the root, except when I use any of the following:</p>
  
  <pre><code>    session_save_path($_SERVER['DOCUMENT_ROOT'] . '/../storage/sessions');
      session_save_path($_SERVER['DOCUMENT_ROOT'] . '/../storage/sessions/'); // With an extra slash at the end
  ini_set('session.save_path', $_SERVER['DOCUMENT_ROOT'] . '/../storage/sessions');
  ini_set('session.save_path', $_SERVER['DOCUMENT_ROOT'] . '/../storage/sessions/'); // Again with the extra slash
  </code></pre>
  
  <p>and not one of these methods work, whenever I load the page I get the following errors:</p>
  
  <blockquote>
    <p>Warning: session_start(): Session data file is not created by your uid
    in /var/www/bootstrap/bootstrap.php on line 25</p>
    
    <p>Warning: session_start(): Failed to read session data: files (path:
    /var/www/public/../storage/sessions/) in
    /var/www/bootstrap/bootstrap.php on line 25</p>
  </blockquote>
  
  <p>Can anyone help me?</p>
  
  <p><strong>Edit:</strong> My server runs on PHP 7.1</p>