diff --git a/core/includes/session.inc b/core/includes/session.inc
index 667fd94..7de6223 100644
--- a/core/includes/session.inc
+++ b/core/includes/session.inc
@@ -150,7 +150,7 @@ function drupal_session_commit() {
       // Force any empty session to be destroyed, this will avoid next bootstrap
       // with the same client to attempt a useless user initialization and session
       // read thus saving precious SQL queries.
-      $session->invalidate();
+      //$session->invalidate();
     }
     else {
       // Save the session only if necessary.
diff --git a/core/lib/Drupal/Core/Session/Storage/DrupalSessionStorage.php b/core/lib/Drupal/Core/Session/Storage/DrupalSessionStorage.php
index 9fc3826..8ca2b08 100644
--- a/core/lib/Drupal/Core/Session/Storage/DrupalSessionStorage.php
+++ b/core/lib/Drupal/Core/Session/Storage/DrupalSessionStorage.php
@@ -48,7 +48,7 @@ public function clear() {
     // means we can mark the session handler as inactive so it won't attempt
     // any empty session write. Our session handler will send session cookie at
     // write time. This allows lazy cookie sending to the client.
-    $this->saveHandler->setActive(FALSE);
+    //$this->saveHandler->setActive(FALSE);
   }
 
   public function regenerate($destroy = FALSE, $lifetime = NULL) {
