<?php ob_start(); session_start(); $tot_allow=count($_SESSION['allowed_modules']); if($_SESSION['id']=="" || $tot_allow<=1) { header("Location: index.php"); } else { echo""; } //print_r($_SESSION); /*$_SESSION['id']=$objectData['recNo']; $_SESSION['username']=$objectData['username']; $_SESSION['usertype']=$objectData['usertype']; header("Location: admin.php");*/ ?>