In what situations should PHP sessions be passed via REQUEST instead of cookies?

In situations where cookies are disabled or not desirable, PHP sessions can be passed via the REQUEST method. This can be useful when dealing with users who have disabled cookies in their browsers or when you want to avoid storing session data on the client side. By passing sessions via REQUEST, you can ensure that session data is still maintained and accessible without relying on cookies.

session_start();

if(isset($_REQUEST['session_id'])) {
    session_id($_REQUEST['session_id']);
}

// Continue with session handling as usual