In version 3.03 (https://github.com/nette/security/releases/tag/v3.0.3) the identity and authenticated state are cached. But it makes problem if you want to switch between namespaces. For example in FrontModule\BasePresenter.php: public function startup() { parent::startup(); $this->getUser()->getStorage()->setNamespace('admin'); $id = $this->getUser()->getId(); $this->getUser()->getStorage()->setNamespace('front'); $id = $this->getUser()->getId(); } It always return ID from "admin" namespace.
In version 3.03 (https://github.com/nette/security/releases/tag/v3.0.3) the identity and authenticated state are cached.
But it makes problem if you want to switch between namespaces.
For example in FrontModule\BasePresenter.php:
public function startup()
{
parent::startup();
}
It always return ID from "admin" namespace.