Sessions A non-blocking session manager for PHP

Getting Started

Usage

Management

Cookies

View the API Documentation for this class

The Cookie class can be used to manage the cookie settings for a session. It is Immutable.

Creating the class will use all the default settings of PHP

use duncan3dc\Sessions\Cookie;

$cookie = new Cookie;

You can create an instance using the current ini values like so:

$cookie = Cookie::createFromIni();

The cookie instance can then be passed when creating a SessionInstance:

$session = new Session("phpmyadmin", $cookie);

The API docs linked above show all the available methods.

This feature was added in v1.1.0