<?
ob_start();
session_start();
if(!isset($_SESSION['sess_pre_id'])){
echo '<META HTTP-EQUIV="Refresh" Content="0; URL=login.php">';
header("Location: login.php");
//die("You are not logged in. Please go to <a href='login.php'>login</a>");
}else{
require_once("./connect_db.php");
}
?>