laminas/laminas-session
Laminas Session provides object-oriented PHP session management: session containers, validators, save handlers, and configuration utilities. Supports secure, testable session workflows for Laminas/Mezzio apps, including storage options and session lifecycle control.
Laminas\Session\Validator\HttpUserAgent provides a validator to check the session
against the originally stored $_SERVER['HTTP_USER_AGENT'] variable. Validation
will fail in the event that this does not match and throws an exception in
Laminas\Session\SessionManager after session_start() has been called.
$manager = new Laminas\Session\SessionManager();
$manager->getValidatorChain()->attach(
'session.validate',
[
new Laminas\Session\Validator\HttpUserAgent(),
'isValid'
]
);
How can I help you explore Laravel packages today?