getSession() instanceof Memory) { /** @var $session Memory */ $session = \OC::$server->getSession(); $session->reopen(); } } }