Been working on this script for few days, any help please how to correct this script:
I wanted to create a 1 script that will work for all pages:
//Start session
session_start();
//Check whether the session variable SESS_MEMBER_ID is present or not
if(!isset($_SESSION['SESS_MEMBER_ID']) || (trim($_SESSION['SESS_MEMBER_ID']) == 'TRUE')) {
header("location: access-denied.php");
exit();
}
Error is: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /homepages/46/d445712420/htdocs/user/portugal
Thanks