Re[2]: [PHP] How can I know if a browser is cookies enables?
| From: | tedd | Date: | Mon, 05 Feb 2007 20:56:51 +0000 |
| Subject: | Re[2]: [PHP] How can I know if a browser is cookies enables? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-248383@lists.php.net to get a copy of this message | ||
At 9:28 PM +0300 2/5/07, Ed Grigoryan wrote:
Hello tedd, Monday, February 5, 2007, 7:04:34 PM, you wrote:Yes, it can be done in both js and php -- the point was to just try to set a cookie and see if it works. If it does, then the browser has cookies enabled. If it doesn't, then either the browser doesn't have cookies enabled or you made a mistake in your coding. The "Give is a glass of milk" thing was simply a poke at the obvious. tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.comAt 11:36 PM -0500 2/4/07, Mauricio Muriel wrote:Hello. How can I know if a web browser is cookies enables? Regards Mauricio M.Give it a glass of milk and watch what happens.tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.comIt can also be done with JavaScript. Found an example at: http://techpatterns.com/downloads/javascript_check_cookies.php Ed