Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<SessionUpdateTimestampHandlerInterfaceSessionUpdateTimestampHandlerInterface::validateId>
^SessionUpdateTimestampHandlerInterfaceLast updated: Mon, 26 Oct 2026

SessionUpdateTimestampHandlerInterface::updateTimestamp

(PHP 7, PHP 8)

SessionUpdateTimestampHandlerInterface::updateTimestamp — Update timestamp

Description

public function SessionUpdateTimestampHandlerInterface::updateTimestamp(string $id, string $data): bool

Updates the last modification timestamp of the session. This function is automatically executed when a session is updated.

Parameters

id

The session ID.

data

The session data. The serialized session data may be used to determine whether the session data has changed and therefore should be updated.

Return Values

Returns true if the timestamp was updated, false otherwise. Note that this value is returned internally to PHP for processing.


<SessionUpdateTimestampHandlerInterfaceSessionUpdateTimestampHandlerInterface::validateId>
^SessionUpdateTimestampHandlerInterfaceLast updated: Mon, 26 Oct 2026