coercive/session

Coercive Security Session

0.0.20 2024-03-14 11:13 UTC

This package is auto-updated.

Last update: 2024-04-14 11:20:49 UTC


README

Start and store basic items in session

Get

composer require coercive/session

Usage

use Coercive\Security\Session\Config;
use Coercive\Security\Session\Session;

# Set your config options
$Config = new Config();
$Config->setAutoStartSession(true);
$Config->setSessionDomain('.mywebsite.com');
//...

# Get your session handler
$Session = new Session($Config);

# And use ...
if($Session->isActive()) {
	// do something
}