.. _security-sessionlazywrite: .. _session-lazy-write: Session Lazy Write ++++++++++++++++++ Classes that implements `SessionHandlerInterface `_ must also implements `SessionUpdateTimestampHandlerInterface `_. The two extra methods are used to help lazy loading : the first actually checks if a sessionId is available, and the seconds updates the time of last usage of the session data in the session storage. This was spotted by ``Nicolas Grekas``, and fixed in Symfony `[HttpFoundation] Make sessions `secure `_ and lazy #24523 `_. .. code-block:: php See also `Sessions: Improve original RFC about lazy_write `_ and `Sessions `_. Connex PHP features ------------------- + `session `_ Suggestions ___________ * Implements the SessionUpdateTimestampHandlerInterface interface Specs _____ +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Short name | Security/SessionLazyWrite | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`Changed Behavior `, :ref:`Security ` | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 0.12.15 | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | PHP Version | All | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Severity | Major | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | Slow (1 hour) | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Precision | High | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Exakat Cloud `_ | +--------------+-------------------------------------------------------------------------------------------------------------------------+