Unverified Commit 2f673bd9 authored by GoT's avatar GoT Committed by GitHub
Browse files

Merge pull request from GHSA-557h-hf3c-whcg

Make sure session is cleared using soft logout
parents 782b1368 759644cf
......@@ -262,6 +262,7 @@ class CookieCore
*/
public function mylogout()
{
$this->deleteSession();
unset(
$this->_content['id_customer'],
$this->_content['id_guest'],
......@@ -514,7 +515,7 @@ class CookieCore
*/
public function isSessionAlive()
{
if (!isset($this->session_id, $this->session_token)) {
if (!isset($this->session_id) || !isset($this->session_token)) {
return false;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment