This error only shows if user is not logged-in. I understand there are already a couple of errors like this, ive tried my best to test them all. but i still cant figure this out.
Notice: Undefined index: user_session in ..index.php on line 10
<?php
session_start();
if (session_status() == PHP_SESSION_NONE){
header('Location: index.php');
}
if (session_status() == PHP_SESSION_ACTIVE) {
$session = $_SESSION['user_session']; //line 10
}