php / 8.1.5 / sessionhandler.create-sid.html /

SessionHandler::create_sid

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

SessionHandler::create_sidReturn a new session ID

Description

public SessionHandler::create_sid(): string

Generates and returns a new session ID.

Parameters

This function has no parameters.

Return Values

A session ID valid for the default session handler.

See Also

© 1997–2021 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/sessionhandler.create-sid.php