title: Warning: session_regenerate_id(): Session object destruction failed in
body: <p>I am receiving the following error randomly when going through the session login code; Warning: session_regenerate_id(): Session object destruction failed in..., </p>
  
  <p>I am using WAMP with PHP5.5.12 on Windows 8.1 Pro 64 bit</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>$session_name = 'seam_secure_session_id';
  ini_set('session.use_only_cookies', 1);
  $cookieParams = session_get_cookie_params();
  session_set_cookie_params($cookieParams["lifetime"], $cookieParams["path"], $cookieParams["domain"], $secure, $httponly);
  session_name($session_name);
  session_start();
  
  session_regenerate_id(true);// regenerated the session, delete the old one.
  
  ob_start();</code></pre>
  </div>
  </div>
  </p>
  
  <p>I receive no other session warnings or errors, and the login code is called at the start of my code before any HTML. I have checked php.ini and the session.save_path. Permissions are fine (Authenticated users, SYSTEM, admin, User all have full control) on the save path, the sessions files are being saved in the folder.</p>
  
  <p>I am at a loss, any ideas?</p>
  
  <p>Thanks</p>
  
  <p>Lee</p>