What are the potential security risks of not changing the default cookie name and key in PHP?

If the default cookie name and key in PHP are not changed, it can make it easier for attackers to exploit known vulnerabilities and launch attacks such as session hijacking or cookie poisoning. To mitigate this risk, it is important to change the default cookie name and key to something unique and secure.

// Set custom cookie name and key
session_name("my_secure_session");
session_start([
    'cookie_name' => 'my_secure_cookie',
    'cookie_httponly' => true,
    'cookie_secure' => true
]);