How can the use of Include() function help in avoiding issues with starting sessions in PHP?

When using the `include()` function in PHP to include files that start sessions, it can lead to issues with starting sessions multiple times or encountering headers already sent errors. To avoid this problem, you can check if the session has already started before starting it again using the `session_status()` function.

// Check if session has already started before starting it again
if (session_status() == PHP_SESSION_NONE) {
    session_start();
}