CakeFest 2024: The Official CakePHP Conference

SessionHandlerInterface::destroy

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

SessionHandlerInterface::destroyセッションを破棄する

説明

public SessionHandlerInterface::destroy(string $id): bool

セッションを破棄します。session_regenerate_id() ($destroy = true) や session_destroy() からコールされ、session_decode() が失敗したときにもコールされます。

パラメータ

id

破棄するセッション ID。

戻り値

返り値 (通常は、true が成功そして false が失敗を表します)。この値は PHP で内部的に処理されるものであることに注意しましょう。

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top