Using session outside the presenter.
- PHP 8.1 or higher
- composer
- Sessions
composer require drago-ex/sessions
service:
- Drago\Http\ExtraSession(@Nette\Http\Session, 'namespace')
// Setting values.
$this->ExtraSession->getSessionSection()->set('value');
// Reading values.
$this->ExtraSession->getSessionSection()->get();