Skip to content

Commit

Permalink
Fix to bugreport #736
Browse files Browse the repository at this point in the history
Fixes #736: Webui when login from different IP is not respond untill remove browser cookies for bareos-webui record
  • Loading branch information
fbergkemper committed Jan 25, 2017
1 parent 81bcbba commit b84bee6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion module/Application/Module.php
Expand Up @@ -73,7 +73,15 @@ public function getAutoloaderConfig()
public function initSession($e)
{
$session = $e->getApplication()->getServiceManager()->get('Zend\Session\SessionManager');
$session->start();

if($session->isValid()) {
// do nothing
}
else {
$session->expireSessionCookie();
$session->destroy();
$session->start();
}

$container = new Container('bareos');

Expand Down

0 comments on commit b84bee6

Please sign in to comment.