source/Application/Model/User.php
public function logout()
    {
        // deleting session info
        Registry::getSession()->deleteVariable('usr'); // for front end
        Registry::getSession()->deleteVariable('auth'); // for back end
        Registry::getSession()->deleteVariable('dynvalue');
        Registry::getSession()->deleteVariable('paymentid');
        // Registry::getSession()->deleteVariable( 'deladrid' );

        // delete cookie
        Registry::getUtilsServer()->deleteUserCookie(\OxidEsales\Eshop\Core\Registry::getConfig()->getShopID());

        // unsetting global user
        $this->setUser(null);

        return true;
    }
public function logout()
    {
        // deleting session info
        Registry::getSession()->deleteVariable('usr'); // for front end
        Registry::getSession()->deleteVariable('auth'); // for back end
        Registry::getSession()->deleteVariable('dynvalue');
        Registry::getSession()->deleteVariable('paymentid');
        // Registry::getSession()->deleteVariable( 'deladrid' );

        // delete cookie
        Registry::getUtilsServer()->deleteUserCookie(\OxidEsales\Eshop\Core\Registry::getConfig()->getShopID());

        // unsetting global user
        $this->setUser(null);

        return true;
    }
public function logout ( ) { // deleting session info Registry :: getSession ( ) -> deleteVariable ( 'usr' ) ; // for front end Registry :: getSession ( ) -> deleteVariable ( 'auth' ) ; // for back end Registry :: getSession ( ) -> deleteVariable ( 'dynvalue' ) ; Registry :: getSession ( ) -> deleteVariable ( 'paymentid' ) ; // Registry::getSession()->deleteVariable( 'deladrid' ); // delete cookie Registry :: getUtilsServer ( ) -> deleteUserCookie ( \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getShopID ( ) ) ; // unsetting global user $ this -> setUser ( null ) ; return true ; }
Logs out session user. Returns true on success

@return bool
Logs out session user . Returns true on success