note 55234 deleted from function.setcookie by nlopess
| From: | nlopess@php.net | Date: | Thu, 28 Jul 2005 12:46:49 +0000 |
| Subject: | note 55234 deleted from function.setcookie by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-92637@lists.php.net to get a copy of this message | ||
Note Submitter: Pinin que de pinon ye sobrin
----
Just to be thorough and complete my previous comment, the snipet would be:
<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>
<NOSCRIPT>
Your browser is too old or you are too paranoid to allow JavaScript to be executed.
Or any other HTML you wisht to place here.
</NOSCRIPT>
This takes care of the possibility that the client does not allow for cookies, or that it does not
allow for JavaScript and you can not check if cookies are allowed.
This should be very well known by everyon but sume time we forget the basics and I think is worth
remembering them.