RE: [PHP] How to check if user accepts cookies - Newbie + Cookies through proxies

From: Date: Wed, 01 Nov 2000 15:43:26 +0000
Subject: RE: [PHP] How to check if user accepts cookies - Newbie + Cookies through proxies
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-23169@lists.php.net to get a copy of this message
I couldn't get that to work. The page had to be refreshed before I could access the cookie variable to check. Could you send me some sample code? Maybe I did it wrong. -Jeff -----Original Message----- From: Jeroen Wesbeek [mailto:J.Wesbeek@DoWebWeDo.com] Sent: Wednesday, November 01, 2000 2:40 AM To: 'Jeff Demel' Cc: 'php-general@lists.php.net' Subject: RE: [PHP] How to check if user accepts cookies - Newbie + Cookies through proxies you can ofcourse set a cookie and then check if the variable you have just set in the cookie exists in your environment. I did this once to filter out people who didn't accept cookies and I think I did it in the same php script. However I noticed that problems occured with many proxy users, and I still haven't found the sollution to that.. anybody else got a clue? dowebwedo Jeroen Wesbeek .programming St. Jacobsstraat 16 Postbus 448 | 3500 AK Utrecht The Netherlands p 030 2348110 | f 030 2348605 [roses are red, violets are blue, I am schizophrenic and so am I ] -----Original Message----- From: Jeff Demel [mailto:jdlists@iglue.com] Sent: dinsdag 31 oktober 2000 18:33 To: php-general@lists.php.net Subject: [PHP] How to check if user accepts cookies - Newbie Listies, Is there a way to determine if a browser accepts cookies using PHP3? From my tests I've found that when cookies are disabled, the setcookie() function simply doesn't set the cookie, without so much as an error. I don't want to run setcookie(), refresh the page, and then look for the cookie, which is the only way I've found to check. I'd like to know right away if the browser will accept a cookie so I can do something else in the code without refreshing the page. TIA -Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#23169) next »