php8.5
Home/ Manual/ session / sessionhandlerinterface/ SessionHandlerInterface::open

SessionHandlerInterface::open

PHP function Edit on GitHub ✎

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

Initialize session

Description

SessionHandlerInterface::open(string $path, string $name): bool

Re-initialize existing session, or creates a new one. Called when a session starts or when session_start() is invoked.

Parameters

path

The path where to store/retrieve the session.

name

The session name.

Return Values

Retval

See Also

Source: reference/session/sessionhandlerinterface/open.xml · from the official PHP manual (php/doc-en)