note 55127 deleted from function.setcookie by nlopess

From: Date: Thu, 28 Jul 2005 12:46:42 +0000
Subject: note 55127 deleted from function.setcookie by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-92636@lists.php.net to get a copy of this message
Note Submitter: Pinin que de pinon ye sobrín ---- Kartik Borikar has given an ingenuous solution of the problem of checking if the browers acepts cookies, that works intependently of any other technology other than HTML and PHP. Still I find it a bit cumbersome for me. I have opted for asumming that the client has a JavaScript enable browers, if it hasn't too bad, the website will not work properly, and no user will be able to log in (encription functions use JavaScript). The check for cookies is simple using Javascript: <SCRIPT language="JavaScript"> <!-- document.cookie = "cookie_test=test"; if(!document.cookie ){ document.write("What ever HTML worning you may wont to put <? what ever PHP code you may want to place here ?>"); } --> </SCRIPT>

« previous php.notes (#92636) next »