https://bugs.php.net/bug.php?id=67296
Only attempt to start a session if headers weren't already sent