source/Application/Controller/ClearCookiesController.php
protected function _removeCookies()
    {
        $oUtilsServer = \OxidEsales\Eshop\Core\Registry::getUtilsServer();
        if (isset($_SERVER['HTTP_COOKIE'])) {
            $aCookies = explode(';', $_SERVER['HTTP_COOKIE']);
            foreach ($aCookies as $sCookie) {
                $sRawCookie = explode('=', $sCookie);
                $oUtilsServer->setOxCookie(trim($sRawCookie[0]), '', time() - 10000, '/');
            }
        }
        $oUtilsServer->setOxCookie('language', '', time() - 10000, '/');
        $oUtilsServer->setOxCookie('displayedCookiesNotification', '', time() - 10000, '/');

        $this->dispatchEvent(new AllCookiesRemovedEvent());
    }
protected function _removeCookies()
    {
        $oUtilsServer = \OxidEsales\Eshop\Core\Registry::getUtilsServer();
        if (isset($_SERVER['HTTP_COOKIE'])) {
            $aCookies = explode(';', $_SERVER['HTTP_COOKIE']);
            foreach ($aCookies as $sCookie) {
                $sRawCookie = explode('=', $sCookie);
                $oUtilsServer->setOxCookie(trim($sRawCookie[0]), '', time() - 10000, '/');
            }
        }
        $oUtilsServer->setOxCookie('language', '', time() - 10000, '/');
        $oUtilsServer->setOxCookie('displayedCookiesNotification', '', time() - 10000, '/');

        $this->dispatchEvent(new AllCookiesRemovedEvent());
    }
protected function _removeCookies ( ) { $ oUtilsServer = \ OxidEsales \ Eshop \ Core \ Registry :: getUtilsServer ( ) ; if ( isset ( $ _SERVER [ 'HTTP_COOKIE' ] ) ) { $ aCookies = explode ( ';' , $ _SERVER [ 'HTTP_COOKIE' ] ) ; foreach ( $ aCookies as $ sCookie ) { $ sRawCookie = explode ( '=' , $ sCookie ) ; $ oUtilsServer -> setOxCookie ( trim ( $ sRawCookie [ 0 ] ) , '' , time ( ) - 10000 , '/' ) ; } } $ oUtilsServer -> setOxCookie ( 'language' , '' , time ( ) - 10000 , '/' ) ; $ oUtilsServer -> setOxCookie ( 'displayedCookiesNotification' , '' , time ( ) - 10000 , '/' ) ; $ this -> dispatchEvent ( new AllCookiesRemovedEvent ( ) ) ; }
Clears all cookies
Clears all cookies