in session/SessionHandler.php [40:120]
public function destroy(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $id): bool;
/**
* Cleanup old sessions
* @link https://php.net/manual/en/sessionhandlerinterface.gc.php
* @param int $max_lifetime <p>
* Sessions that have not updated for
* the last maxlifetime seconds will be removed.
* </p>
* @return int|false <p>
* Returns the number of deleted sessions on success, or false on failure. Prior to PHP version 7.1, the function returned true on success.
* Note this value is returned internally to PHP for processing.
* </p>
* @since 5.4
*/
#[LanguageLevelTypeAware(['7.1' => 'int|false'], default: 'bool')]
#[TentativeType]
public function gc(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $max_lifetime): int|false;
/**
* Initialize session
* @link https://php.net/manual/en/sessionhandlerinterface.open.php
* @param string $path The path where to store/retrieve the session.
* @param string $name The session name.
* @return bool <p>
* The return value (usually TRUE on success, FALSE on failure).
* Note this value is returned internally to PHP for processing.
* </p>
* @since 5.4
*/
#[TentativeType]
public function open(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $path,
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name
): bool;
/**
* Read session data
* @link https://php.net/manual/en/sessionhandlerinterface.read.php
* @param string $id The session id to read data for.
* @return string|false <p>
* Returns an encoded string of the read data.
* If nothing was read, it must return false.
* Note this value is returned internally to PHP for processing.
* </p>
* @since 5.4
*/
#[TentativeType]
public function read(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $id): string|false;
/**
* Write session data
* @link https://php.net/manual/en/sessionhandlerinterface.write.php
* @param string $id The session id.
* @param string $data <p>
* The encoded session data. This data is the
* result of the PHP internally encoding
* the $_SESSION superglobal to a serialized
* string and passing it as this parameter.
* Please note sessions use an alternative serialization method.
* </p>
* @return bool <p>
* The return value (usually TRUE on success, FALSE on failure).
* Note this value is returned internally to PHP for processing.
* </p>
* @since 5.4
*/
#[TentativeType]
public function write(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $id,
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $data
): bool;
}
/**
* <b>SessionIdInterface</b>
* @link https://php.net/manual/en/class.sessionidinterface.php
* @since 5.5.1
*/
interface SessionIdInterface
{