[BUGFIX] Cleanly unset cookies on login in cookie-check 52/25852/2
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Sun, 1 Dec 2013 17:53:08 +0000 (18:53 +0100)
committerMarkus Klein <klein.t3@mfc-linz.at>
Mon, 2 Dec 2013 10:51:36 +0000 (11:51 +0100)
Needed to workaround a login-problem with IE11.

ExtJS tries to clear a cookie with different settings than when
setting the cookie. In IE11 this leads to problems with the cookie
being set twice on the next call to set(). The get() however
would return the first (empty) cookie.

Using set() with a date in the past also clears the cookie but
will correctly use the same path-settings.

Change-Id: Ieff22129895cd89ca2e1429703daf1636596ecb6
Resolves: #53818
Releases: 6.2, 6.1, 6.0, 4.7, 4.5
Reviewed-on: https://review.typo3.org/25852
Reviewed-by: Henrik Ziegenhain
Tested-by: Henrik Ziegenhain
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Steffen Ritter
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/t3skin/Resources/Public/JavaScript/login.js

index 3040652..f4dee7e 100644 (file)
@@ -177,7 +177,7 @@ TYPO3BackendLogin = {
                        TYPO3BackendLogin.showCookieWarning()
                }
 
-               Ext.util.Cookies.clear('typo3-login-cookiecheck');
+               Ext.util.Cookies.set('typo3-login-cookiecheck', '', new Date(0));
        },
 
        /**