mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 11:36:23 +00:00
668 B
668 B
date | id | title |
---|---|---|
2020-11-09 | 676f2820-f539-4b0a-8633-668fd0630c3c | Lazy Sessions |
Introduction
PHP 7.0 introduced a new interface called
SessionUpdateTimestampHandlerInterface
. As of Symfony
4.0 this has been added to the PHP7
Polyfill component
Syntax
interface SessionUpdateTimestampHandlerInterface
{
// Checks if a session identifier already exists or not.
public function validateId(string $key) : bool;
// Updates the timestamp of a session when its data didn't change.
public function updateTimestamp(string $key, string $val) : bool;
}