We host our databse on webhost and this happened, we are new to prograaming. We didint know how to fix it. Help is appreciated, thank you so much
Notice: Undefined variable: _SESSION in /storage/ssd3/269/20473269/public_html/E-Request/student/main_header/header.php on line 6
Warning: Cannot modify header information – headers already sent by (output started at /storage/ssd3/269/20473269/public_html/E-Request/student/index.php:1) in /storage/ssd3/269/20473269/public_html/E-Request/student/main_header/header.php on line 7
<?php
include('../init/model/class_model.php');
session_start();
if(!(trim($_SESSION['student_id']))){
header('location:../index.php');
}
?>
Please dtermine what causes it and how to fix it.