Skip to content
Permalink
Browse files Browse the repository at this point in the history
Merge pull request from GHSA-557h-hf3c-whcg
Make sure session is cleared using soft logout
  • Loading branch information
PierreRambaud committed Feb 22, 2021
2 parents 782b136 + 759644c commit 2f673bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion classes/Cookie.php
Expand Up @@ -262,6 +262,7 @@ public function logout()
*/
public function mylogout()
{
$this->deleteSession();
unset(
$this->_content['id_customer'],
$this->_content['id_guest'],
Expand Down Expand Up @@ -514,7 +515,7 @@ public function deleteSession()
*/
public function isSessionAlive()
{
if (!isset($this->session_id, $this->session_token)) {
if (!isset($this->session_id) || !isset($this->session_token)) {
return false;
}

Expand Down

0 comments on commit 2f673bd

Please sign in to comment.