<?php session_start(); if(!isset($_SESSION['email'])) { header("Location:../franchise_login.php"); } else if(isset($_SESSION['email'])!="") { header("Location:../franchise_login.php"); } if(isset($_GET['logout'])) { session_destroy(); unset($_SESSION['email']); header("Location:../franchise_login.php"); } ?>