Can session names be assigned in PHP, or is the session ID the only identifier?

In PHP, session names can be assigned to easily identify different sessions. By default, PHP assigns a session ID as the identifier for each session. However, you can set a custom session name using the `session_name()` function before starting the session. This allows you to have more control over the session identification process.

<?php
// Set a custom session name
session_name("my_session");

// Start the session
session_start();

// Now you can access the session using the custom name
$_SESSION['example'] = 'value';
?>