<?php
session_start();
include ("connection.php");
if ($_SESSION['banned'] == 1)
die ("Your Account Has Been Disabled, Please Contact An Administrator!");
?>
Can someone modfi this from using sessions to something more better, when i ban a user they wont be banned untill they login again so the session can be set, Need something that will say if theres 1 = in the database (1 means your banned) for that user then kill the script, Next time they refresh the page, It be alot easier and better, or something that can destroy the sessions if it == 1 so they have to login again to apply the sessions.