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

2007-02-05 Thread Jürgen Wind

 How can I know if a web browser is cookies enables?
Send them ONE cookie and see if you get it back on the next page.
yep
Actually, just use session_start() and see if it works or not is even
easier.
having sessions working is not dependent on cookies.

-- 
View this message in context: 
http://www.nabble.com/How-can-I-know-if-a-browser-is-cookies-enables--tf3172563.html#a8806163
Sent from the PHP - General mailing list archive at Nabble.com.

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



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

2007-02-05 Thread tedd

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

--
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 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: [PHP] How can I know if a browser is cookies enables?

2007-02-05 Thread Ed Grigoryan
Also try:
http://www.aspfaqs.com/webtech/082400-1.shtml

What would we do without search engines? :))

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



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

2007-02-04 Thread Mauricio Muriel

Hello.

How can I know if a web browser is cookies enables?

Regards

Mauricio M.


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

2007-02-04 Thread Richard Lynch
On Sun, February 4, 2007 10:36 pm, Mauricio Muriel wrote:
 How can I know if a web browser is cookies enables?

Send them ONE cookie and see if you get it back on the next page.

Actually, just use session_start() and see if it works or not is even
easier.

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

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