drago-ex/sessions

Using session outside the presenter for Nette Framework

v1.0.5 2023-12-08 07:37 UTC

This package is auto-updated.

Last update: 2024-04-12 14:13:00 UTC


README

Using session outside the presenter.

License: MIT PHP version Tests Coding Style CodeFactor Coverage Status

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();