[PHP] How to tell if client has cookies turned off?

2001-03-06 Thread kevin1
How can I tell reliably if someone has cookies turned off? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] How to tell if client has cookies turned off?

2001-03-06 Thread Chris Adams
On 6 Mar 2001 07:53:46 -0800, kevin1 [EMAIL PROTECTED] wrote: How can I tell reliably if someone has cookies turned off? Set a cookie on your site (perhaps the homepage?) and use code like this: if (!empty($UserHasCookies)) { echo 'Whew - you do have cookies'; }

Re: [PHP] How to tell if client has cookies turned off?

2001-03-06 Thread Rick St Jean
Something else to consider is that if someone is kinda smart they can place the variable into the url. So, if it is important you may want to put a checksum or token in there. Rick At 08:52 AM 3/6/01 -0800, you wrote: On 6 Mar 2001 07:53:46 -0800, kevin1 [EMAIL PROTECTED] wrote: How can I

Re: [PHP] How to tell if client has cookies turned off?

2001-03-06 Thread Rick St Jean
you can check the HTTP_COOKIE_VARS array after setting a cookie to see if anything is placed in there. Rick At 08:52 AM 3/6/01 -0800, Chris Adams wrote: On 6 Mar 2001 07:53:46 -0800, kevin1 [EMAIL PROTECTED] wrote: How can I tell reliably if someone has cookies turned off? Set a cookie on