« SessionHandlerInterface::write
SessionIdInterface::create_sid »

SessionIdInterface クラス

(PHP 5 >= 5.5.1, PHP 7, PHP 8)

はじめに

SessionIdInterface は カスタムのセッションハンドラを作成するためのオプションのメソッドを定義します。 オブジェクト指向型 の呼び出しを使い、 カスタムのセッションハンドラを session_set_save_handler() に渡すために、 このインターフェイスを実装することができます。

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

インターフェイス概要

interface SessionIdInterface {
/* メソッド */
public function create_sid(): string
}

目次

関連キーワード:
SessionIdInterface   create   セッション   カスタム   ハンドラ   インターフェイス   SessionHandlerInterface   write   Sessions   オブジェクト指向   session   save   handler   実装   バック   内部的   コード   想定   概要   interface   目次
関連する関数・ページ:
sessionidinterface.create-sid   refs.basic.session   book.session   session.customhandler   sessionhandlerinterface.write   session.examples