Forum Moderators: coopster
<?php
session_start(); // Start the php session
ob_start();
ini_set("session.cookie_httponly", 1);
$httponly = true;
if (isset($_SESSION['HTTP_USER_AGENT'])) {
if ($_SESSION['HTTP_USER_AGENT'] != md5($_SERVER['HTTP_USER_AGENT'])) {
header('Location: http://www.google.com');
exit;
}
elseif ( $_SESSION['HTTP_USER_AGENT'] = md5($_SERVER['HTTP_USER_AGENT']) ) {
header('Location: http://www.ok.com');
}
}