What are common mistakes that can lead to the error "Cannot send session cookie" in PHP scripts?

The error "Cannot send session cookie" in PHP scripts typically occurs when you try to set a session cookie after headers have already been sent to the browser. To solve this issue, make sure to call `session_start()` at the beginning of your script before any output is sent to the browser.

<?php
session_start();

// Your PHP code here
?>