note 30300 deleted from function.setcookie by irchtml

From: Date: Wed, 25 Feb 2004 07:27:47 +0000
Subject: note 30300 deleted from function.setcookie by irchtml
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-65696@lists.php.net to get a copy of this message
Note Submitter: ppegah@yahoo.com ---- Here is a very simple way to finde out if the browser supports cookie: setcookie("check_cookie", "on", time()+(60)); $refreshed= "set"; if (!isset($refreshed)) { //forcing the browser to reload echo "<META HTTP-EQUIV=Refresh CONTENT=\"0\">\n"; } if (!isset($check_cookie)) { //Browser does not accepting cookies //Do something } else { //The browser accepts cookies //Do something else } I hope it helps somebody :-) Reagrds Kayvan

« previous php.notes (#65696) next »