session_start();
header('Expires: Sun, 01 Jan 2014 00:00:00 GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', FALSE);
header('Pragma: no-cache');
//Detect special conditions devices
$iPod = stripos($_SERVER['HTTP_USER_AGENT'],"iPod");
$iPhone = stripos($_SERVER['HTTP_USER_AGENT'],"iPhone");
$iPad = stripos($_SERVER['HTTP_USER_AGENT'],"iPad");
$Android = stripos($_SERVER['HTTP_USER_AGENT'],"Android");
$BlackBerry = stripos($_SERVER['HTTP_USER_AGENT'],"BlackBerry");
function isMobile() {
return preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|hiptop|mini|palm|pie|tablet|up\.browser|up\.link|webos|wos)/", strtolower($_SERVER["HTTP_USER_AGENT"]));
}
if(!isset($_COOKIE['login'])) {
//echo "Cookie named '" . $cookie_name . "' is not set!";
} else {
$_SESSION['login'] = "1";
//echo "Cookie '" . $cookie_name . "' is set!
";
//echo "Value is: " . $_COOKIE[$cookie_name];
}
?>