max/session

This package is abandoned and no longer maintained. The author suggests using the next/session package instead.

0.1.1 2023-07-02 02:28 UTC

This package is auto-updated.

Last update: 2023-10-31 02:56:40 UTC


README

composer require next/session
$sessionHandler = new \Next\Session\Handler\FileHandler();

$session = new \Next\Session\Session($sessionHandler);

$session->start(null); // 如果为null则创建id
$session->set('foo', 'bar');
$session->get('foo');
$session->save();
$session->close();

$sessionId = $session->getId();