CakeFest 2024: The Official CakePHP Conference

SessionUpdateTimestampHandlerInterface クラス

(PHP 7, PHP 8)

はじめに

SessionUpdateTimestampHandlerInterface は カスタムセッションハンドラを作成する際の最低限のプロトタイプを定義したインターフェイスです。 自作のセッションハンドラを オブジェクト指向型 の起動方法で session_set_save_handler() に渡すために、このインターフェイスを実装することができます。

このクラスのコールバックメソッドは PHP が内部的にコールするものであり、 ユーザーのコードから呼ばれることは想定していないことに注意しましょう。

クラス概要

interface SessionUpdateTimestampHandlerInterface {
/* メソッド */
public updateTimestamp(string $id, string $data): bool
public validateId(string $id): bool
}

目次

add a note

User Contributed Notes 1 note

up
0
Anonymous
4 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
To Top