略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: SessionUpdateTimestampHandlerInterface

2025-02-27

The SessionUpdateTimestampHandlerInterface interface

(PHP 7, PHP 8)

简介

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.

类摘要

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

目录

添加备注

用户贡献的备注 1 note

up
0
Anonymous
5 years ago
There is a bit of documentation provided by Wu Xiancheng. See his comment in the SessionHandlerInterface section:
https://www.php.net/manual/en/class.sessionhandlerinterface.php#122032

官方地址:https://www.php.net/manual/en/class.sessionupdatetimestamphandlerinterface.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3