Checking if a cookie is set
yes its possible you need in index file include the ini file 

require_once "../app/function/init.php";


and also need .htaccess something look like that 

Options -MultiViews
&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On

RewriteBase MVC/Source Files/public

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule ^(.+)$ index.php?url=$1 [L,QSA] 

&lt;/IfModule&gt;


you can also put php ini file script in index.php file inside public directory 

&lt;?php
session_start();
error_reporting(E_ALL);

require_once "../app/functions/onfig.php";
require_once "../app/functions/functions.php";
require_once __DIR__ . '/../vendor/autoload.php';

use \App\Core as App;
use \App\Models\Auth\Login as Login;
use \App\Core\Database as Database;

$app = new App\App();

/**
 * Checks if login cookie exists and log in the user
 */
if(isset($_COOKIE['cookie_hash']) &amp;&amp; isset($_SESSION['cookie_hash']))
{
    $login = new Login(Database::getInstance());
    $login-&gt;cookieLogin($_COOKIE['cookie_hash'], $_SESSION['cookie_hash']);
}

App\FlashMessage::clear();


you can install session in your App.php file so session start automatically in every file no need to write