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
pathThe path where to store/retrieve the session.
nameThe session name.
Return Values
Retval
See Also
session_name()- The session.auto-start configuration directive.