What is the recommended practice for setting session names in PHP cookies?

When setting session names in PHP cookies, it is recommended to use a unique and secure name to prevent conflicts with other session cookies on the same domain. This can help improve security and prevent potential session hijacking attacks. One common practice is to prefix the session name with a unique identifier specific to your application.

<?php
// Set a unique session name
session_name('myapp_session');

// Start the session
session_start();

// Rest of your PHP code
?>