Re[2]: How can I know if a browser is cookies enables?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 9:28 PM +0300 2/5/07, Ed Grigoryan wrote:
Hello tedd,

Monday, February 5, 2007, 7:04:34 PM, you wrote:

 At 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.com

It can also be done with JavaScript. Found an example at:
http://techpatterns.com/downloads/javascript_check_cookies.php

Ed

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.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux