I am getting an error while trying to setup my login system. I've tried multiple "solutions" but none of them work such as putting the start_session on the top of all the scripts.
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at test4\index.php:311) in test4\classes\Login.php on line 28
Line 311:
    <?php // line 311
    if (version_compare(PHP_VERSION, '5.3.7', '<')) {
        exit("Please upgrade the PHP version to 5.3.7 or higher.");
    } else if (version_compare(PHP_VERSION, '5.5.0', '<')) {
        require_once("libraries/password_compatibility_library.php");
    }
    require_once("config/db.php");
    require_once("classes/Login.php");
    $login = new Login();
Line 28 in classes/Login.php:
<?php
class Login {
    private $db_connection = null;
    public $errors = array();
    public $messages = array();
    public function __construct() {
        session_start(); // line 28
Thank you in advance!
 
    