Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- Header Location does not work in IE


rigaconnect - 1:08 pm on Feb 3, 2013 (gmt 0)


This does not work in Internet Explorer....
Why?




<?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');
}
}


Thread source:: http://www.webmasterworld.com/php/4542000.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com