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
 
<SessionIdInterface::create_sidSessionUpdateTimestampHandlerInterface::updateTimestamp>
^SessionsLast updated: Mon, 26 Oct 2026

The SessionUpdateTimestampHandlerInterface interface

(PHP 7, PHP 8)

Introduction

SessionUpdateTimestampHandlerInterface is an interface which defines optional methods for creating a custom session handler. In order to pass a custom session handler to session_set_save_handler() using its OOP invocation, the class can implement this interface.

Note that the callback methods of classes implementing this interface are designed to be called internally by PHP and are not meant to be called from user-space code.

Class synopsis

interface SessionUpdateTimestampHandlerInterface {
/* Methods */
public function updateTimestamp(string $id, string $data): bool
public function validateId(string $id): bool
}

Table of Contents


<SessionIdInterface::create_sidSessionUpdateTimestampHandlerInterface::updateTimestamp>
^SessionsLast updated: Mon, 26 Oct 2026