Skip to content

Commit 3bdc91e

Browse files
seansanFlyingmana
authored andcommitted
Fix mage cookies clear from OpenMage#73
Fix mage cookies clear from OpenMage#73 https://magento.stackexchange.com/questions/105068/mage-cookies-clear-not-working Untested by me personally
1 parent 34afee0 commit 3bdc91e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

js/mage/cookies.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ Mage.Cookies.get = function(name){
6464

6565
Mage.Cookies.clear = function(name) {
6666
if(Mage.Cookies.get(name)){
67-
document.cookie = name + "=" +
68-
"; expires=Thu, 01-Jan-70 00:00:01 GMT";
67+
Mage.Cookies.set(name, '', new Date(0));
6968
}
7069
};
7170

0 commit comments

Comments
 (0)