What are common issues that can arise when using sessions in PHP?

One common issue when using sessions in PHP is the "headers already sent" error, which occurs when trying to set session variables after any output has been sent to the browser. To solve this, make sure to call `session_start()` at the beginning of your script before any output is sent.

<?php
session_start();
// rest of your PHP code here
?>