note 55127 added to function.setcookie
| From: | Pininquedepinonyesobr�n at osu1 dot php dot net | Date: | Tue, 26 Jul 2005 11:10:27 +0000 |
| Subject: | note 55127 added to function.setcookie | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-92460@lists.php.net to get a copy of this message | ||
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>
----
Manual Page -- http://www.php.net/manual/en/function.setcookie.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+55127
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55127&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55127&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55127&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55127&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55127&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55127&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+55127&report=yes
Search -- http://master.php.net/manage/user-notes.php