<?php
session_start();

if(!isset($_SESSION['bank']))
{
	header("Location: index.php");
}
else if(isset($_SESSION['bank'])!="")
{
	header("Location: home.php");
}

if(isset($_GET['logout']))
{
	session_destroy();
	unset($_SESSION['bank']);
	header("Location: index.php");
}
?>