View Issue Details

IDProjectCategoryView StatusLast Update
0006002OXID eShop (all versions)4.02. Session handlingpublic2014-12-18 14:23
Reporterdleicht Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
Product Version4.9.2 / 5.2.2 
Summary0006002: [CE 4.9.2] Errors are kept in Session
DescriptionIn oxShopControl::_getErrors() Line 538 f. The errors loaded from Session will be saved right back into it and won't disappear in frontend..

I fixed this issue replacing the lines
oxRegistry::getSession()->setVariable('ErrorController', $this->_aControllerErrors); oxRegistry::getSession()->setVariable('Errors', $this->_aAllErrors);

with this ones:
oxRegistry::getSession()->setVariable('ErrorController', array());
oxRegistry::getSession()->setVariable('Errors', array());

TagsNo tags attached.
ThemeAll
BrowserAll
PHP Versionany
Database Versionany

Activities

Linas Kukulskis

2014-12-18 14:23

reporter   ~0010554

there is some misunderstanding in error handling; errors are stored in array per controller (page where it should be shown); in your fix you are braking this functionality; and removing all errors from all controller in one action;