Yanu Widodo wrote:
Dear Linux expert,

Saya ada script untuk ngetes cokie seperti ini :

# cat /var/www/html/latihan/tescokie.php
<?php
$tes_cookie="Tes Browser";
if ($QUERY_STRING != $tes_cookie)
{
        setcookie("cookieku",$tes_cookie);
        header("Location:$PHP_SELF?$tes_cookie");
}
if($cookieku==$tes_cookie)
        echo("Browser anda sudah mendukung Cookie");
else
        echo("Browser anda belum mendukung Cookie");

?>


Namun hasilnya kok "Redirection limit for this URL exceeded. Unable to load the requested page"

kira-kira napa ya ?! apakah ada salah konfigurasi apache ?
atau memang ada yg perlu dikonfigurasi di apache ?!

fyi : saya make apache bawaan redhat 9.0


Trims

yanu

Coba cek pakai script berikut, nanti Anda akan mengerti :)

<?php
$tes_cookie = "Tes Browser" ;
if ( $_SERVER['QUERY_STRING'] != $tes_cookie )
{
   echo '$QUERY_STRING: ' .$_SERVER['QUERY_STRING'] ;
}
else
{
   echo '$QUERY_STRING sudah sama' ;
}
?>

--
Regards,

Asep Andria I.W.
http://asepandria.blogspot.com
--


--
Berhenti langganan: [EMAIL PROTECTED]
Arsip dan info: http://linux.or.id/milis

Kirim email ke