<?php ob_start(); ini_set('session.gc_maxlifetime',3*60*60); session_start(); if($_SESSION['sid']=="" || $_SESSION['utype']!='Student') { 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");*/ ?>