source/Application/Model/ArticleList.php
public function setHistoryArticles($aArticlesIds)
    {
        if ($this->getSession()->getId()) {
            \OxidEsales\Eshop\Core\Registry::getSession()->setVariable('aHistoryArticles', $aArticlesIds);
            // clean cookie, if session started
            \OxidEsales\Eshop\Core\Registry::getUtilsServer()->setOxCookie('aHistoryArticles', '');
        } else {
            \OxidEsales\Eshop\Core\Registry::getUtilsServer()->setOxCookie('aHistoryArticles', implode('|', $aArticlesIds));
        }
    }
public function setHistoryArticles($aArticlesIds)
    {
        if ($this->getSession()->getId()) {
            \OxidEsales\Eshop\Core\Registry::getSession()->setVariable('aHistoryArticles', $aArticlesIds);
            // clean cookie, if session started
            \OxidEsales\Eshop\Core\Registry::getUtilsServer()->setOxCookie('aHistoryArticles', '');
        } else {
            \OxidEsales\Eshop\Core\Registry::getUtilsServer()->setOxCookie('aHistoryArticles', implode('|', $aArticlesIds));
        }
    }
public function setHistoryArticles ( $ aArticlesIds ) { if ( $ this -> getSession ( ) -> getId ( ) ) { \ OxidEsales \ Eshop \ Core \ Registry :: getSession ( ) -> setVariable ( 'aHistoryArticles' , $ aArticlesIds ) ; // clean cookie, if session started \ OxidEsales \ Eshop \ Core \ Registry :: getUtilsServer ( ) -> setOxCookie ( 'aHistoryArticles' , '' ) ; } else { \ OxidEsales \ Eshop \ Core \ Registry :: getUtilsServer ( ) -> setOxCookie ( 'aHistoryArticles' , implode ( '|' , $ aArticlesIds ) ) ; } }
Set history article id's to session or cookie

@param array $aArticlesIds array history article ids
Set history article id s to session or cookie