Skip to content

drago-ex/sessions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drago Sessions

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