SessionHandlerInterface::close

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

SessionHandlerInterface::closeClose the session

說明

public SessionHandlerInterface::close(): bool

Closes the current session. This function is automatically executed when closing the session, or explicitly via session_write_close().

參數(shù)

此函數(shù)沒有參數(shù)。

返回值

會話存儲的返回值(通常成功返回 0,失敗返回 1)。