Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PrestaShop
PrestaShop
Commits
2f673bd9
Unverified
Commit
2f673bd9
authored
Feb 22, 2021
by
GoT
Committed by
GitHub
Feb 22, 2021
Browse files
Merge pull request from GHSA-557h-hf3c-whcg
Make sure session is cleared using soft logout
parents
782b1368
759644cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
classes/Cookie.php
View file @
2f673bd9
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment