Answers.Body: <p>I saw a few work arounds for this here, hopefully it helps:
  <a href="https://github.com/yiisoft/yii/issues/2376" rel="nofollow noreferrer">https://github.com/yiisoft/yii/issues/2376</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-20T21:01:29.220Z
Answers.LastActivityDate: 2017-10-20T21:01:29.220Z
Answers.UserDisplayName: Rick Kukiela
Answers.Body: <p>I resolved this by updating core YII functionality that was not working suddenly with Ubuntu 16.04 and the latest version of php 7.0.</p>
  
  <p>CHttpSession::regenerateID changed to:</p>
  
  <pre><code>public function regenerateID($deleteOldSession=false)
  {
      if(session_id() === '')
          session_regenerate_id($deleteOldSession);
  }
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-23T15:00:22.517Z
Answers.LastActivityDate: 2017-10-23T15:00:22.517Z
Answers.UserDisplayName: Exziled
Body: <p><code>session_regenerate_id(): Session object destruction failed</code> is the error i'm receiving after attempting to log in.</p>
  
  <p>I just updated to Ubuntu 16.04LTS using PHP7 and php-memcached. </p>
  
  <p>Is there a fix for this in a craft version? I'm on version 2.6.2791 and this behavior is still broken. I cannot seem to find a workaround besides overwriting Yii with a workaround myself.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-10-24T02:56:34.330Z
Comments.Text: Any reason why you're not using the current version of Craft (which is 2.6.2993)?  2.6.2791 was released over a year ago and Craft is currently using the latest version of yii, it should already be patched when you upgrade. Voting to close this.
Comments.UserDisplayName: RitterKnight
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-10-24T14:40:52.743Z
Comments.Text: @RitterKnight I was unable to update directly to 2993 from 2791. I updated to 2951 and it was still occurring. I'm planning to update to 2993 after this release next week.
Comments.UserDisplayName: Exziled
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-10-25T15:28:12.360Z
Comments.Text: Did you do a [manual update](https://craftcms.com/docs/updating#manually-updating) or use the CP?  I do believe there might have been one or two updates that required a manual update.
Comments.UserDisplayName: RitterKnight
Tags: <php><session><yii>
Title: Craft login problem with memcache and ubuntu?
ThreadText: # Craft login problem with memcache and ubuntu?
  
  (Asked by: username_0 on 2017-10-20)
  
  `session_regenerate_id(): Session object destruction failed` is the error i'm receiving after attempting to log in.
  
  I just updated to Ubuntu 16.04LTS using PHP7 and php-memcached.
  
  Is there a fix for this in a craft version? I'm on version 2.6.2791 and this behavior is still broken. I cannot seem to find a workaround besides overwriting Yii with a workaround myself.
  
  **Tags:** php, session, yii
  
  > **Comments:**
  > **username_1**: Any reason why you're not using the current version of Craft (which is 2.6.2993)?  2.6.2791 was released over a year ago and Craft is currently using the latest version of yii, it should already be patched when you upgrade. Voting to close this.  
  > **username_0**: @username_1 I was unable to update directly to 2993 from 2791. I updated to 2951 and it was still occurring. I'm planning to update to 2993 after this release next week.  
  > **username_1**: Did you do a [manual update](https://craftcms.com/docs/updating#manually-updating) or use the CP?  I do believe there might have been one or two updates that required a manual update.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2017-10-20. Score: 1
  
  I saw a few work arounds for this here, hopefully it helps:
  <https://github.com/yiisoft/yii/issues/2376>
  
  
  ---
  
  ### Answer by username_0 on 2017-10-23. Score: 1
  
  I resolved this by updating core YII functionality that was not working suddenly with Ubuntu 16.04 and the latest version of php 7.0.
  
  CHttpSession::regenerateID changed to:
  
  ```
  public function regenerateID($deleteOldSession=false)
  {
      if(session_id() === '')
          session_regenerate_id($deleteOldSession);
  }
  
  ```
  
  
  ---
  
  