has()
has(string $key) : bool
Check if a session value exists.
Parameters
string | $key | The session key. |
Returns
bool —Return true if the session value exists.
Storage interface.
The StorageInterface
defines the contract for session storage implementations.
It provides methods for checking, retrieving, storing, and removing session values.