[BUGFIX] Cleanly unset cookies on login in cookie-check 71/25871/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>
Thu, 12 Dec 2013 11:45:55 +0000 (12:45 +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/25871
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Steffen Ritter
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/t3skin/resources/login.js

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