webCOMAND

session::regenerate_session_id()

Regenerate the session ID.  This will update the session ID stored in the web browser and on the server, which can help improve security.

Prototype

void regenerate_session_id()

Example

// update the session ID
$session = new \io_comand_web\session();
$session->regenerate_session_id();