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

2007-02-05 Thread Ed Grigoryan
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

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



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

2007-02-05 Thread tedd

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