joomla/session
Framework-agnostic PHP 8.1+ session management from the Joomla Framework. Provides interfaces and utilities to start and manage sessions, store and retrieve session data, and integrate session handling cleanly within your application.
The ValidatorInterface is designed to allow custom validation of the session to help protect against session attacks.
The validate method is used to check if the session is valid. If the session is invalid it should throw a Joomla\Session\Exception\InvalidSessionException. If the $restart flag is set to true then any data stored in the session should be invalidated (normally by setting it to null) and new properties retrieved.
/**
* [@param](https://github.com/param) boolean $restart Flag if the session should be restarted
*
* [@return](https://github.com/return) void
*
* [@throws](https://github.com/throws) \Joomla\Session\Exception\InvalidSessionException
*/
public function validate(bool $restart = false);
How can I help you explore Laravel packages today?