mini\Session\SessionInterface abstract interface

Documentation

Session service interface

Provides a per-request session abstraction that works transparently in both traditional PHP-FPM and fiber-based async runtimes.

The session auto-starts on first access and auto-saves at request end. This eliminates the need to call session_start() manually.

Inheritance

Implements: ArrayAccess Countable IteratorAggregate Traversable

Methods (18)

Get a session value

Set a session value

Check if a session key exists

Remove a session key

Get all session data

Clear all session data

Get the session ID

Regenerate the session ID

Check if the session has been started

Explicitly save and close the session

Destroy the session completely

Get cookie data if one needs to be set on the response

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Source

src/Session/SessionInterface.php:14-114