function set_cookie($value, $minute=0)
{
if ($minute != 0)
$exp = time() + intval($minute)*60;
else
$exp = 0;
setcookie("PUS_AVCI" , $value, $exp, '/', "" ,0);
}
function CheckCookie()
{ global $_COOKIE, $Cerez;
if (!isset($_COOKIE["PUS_AVCI"]) && !isset($Cerez[0]) && !isset($Cerez[1]) )
{
die ( '<script>parent.location.href = "hata.php?mesaj=Oturum Zaman Asimina Ugradi!";</script>');
exit();
}
}
function CheckCookiePus()
{ global $_COOKIE, $Cerez;
if (!isset($_COOKIE["PUS_AVCI"]) && !isset($Cerez[0]) && !isset($Cerez[1]) )
Hata("Oturum Zaman Asimina Ugradi!");