What is the purpose of setting session_use_cookies to 0 in PHP?

Setting `session_use_cookies` to 0 in PHP disables the use of cookies to store the session ID. This can be useful in cases where cookies are not supported or preferred for session management. By setting this configuration option to 0, PHP will append the session ID to URLs automatically, allowing sessions to be maintained without relying on cookies.

// Disable the use of cookies for session management
ini_set('session.use_cookies', 0);
ini_set('session.use_only_cookies', 0);
ini_set('session.use_trans_sid', 1);

// Start the session
session_start();