Skip to content

Instantly share code, notes, and snippets.

@AurelienLavorel
Created August 25, 2019 20:15
Show Gist options
  • Save AurelienLavorel/9c0d4ceb04ddc56b6f608b0225c13ecd to your computer and use it in GitHub Desktop.
Save AurelienLavorel/9c0d4ceb04ddc56b6f608b0225c13ecd to your computer and use it in GitHub Desktop.
Fix session patch
diff --git a/app/code/core/Mage/Core/Model/Session/Abstract.php b/app/code/core/Mage/Core/Model/Session/Abstract.php
index 8386fb8..a287df6 100644
--- a/app/code/core/Mage/Core/Model/Session/Abstract.php
+++ b/app/code/core/Mage/Core/Model/Session/Abstract.php
@@ -564,6 +564,8 @@ class Mage_Core_Model_Session_Abstract extends Mage_Core_Model_Session_Abstract_
*/
public function renewSession()
{
+ return $this;
+
$this->getCookie()->delete($this->getSessionName());
$this->regenerateSessionId();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment