drago-ex / sessions
Using session outside the presenter for Nette Framework
v1.0.5
2023-12-08 07:37 UTC
Requires
- php: >=8.1 <8.4
- nette/http: ^3.0
- nette/utils: ^4.0
Requires (Dev)
- nette/bootstrap: ^3.0
- nette/tester: ^2.5
- phpstan/phpstan-nette: ^1.2.9
- tracy/tracy: ^2.10
README
Using session outside the presenter.
Technology
- PHP 8.1 or higher
- composer
Knowledge
- Sessions
Installation
composer require drago-ex/sessions
Service registration
service: - Drago\Http\ExtraSession(@Nette\Http\Session, 'namespace')
Use
// Setting values. $this->ExtraSession->getSessionSection()->set('value'); // Reading values. $this->ExtraSession->getSessionSection()->get();