On Tue, May 8, 2007 1:31 pm, [EMAIL PROTECTED] wrote:
> How does one check to see if the user's browser accepts
> session cookies?

My browser doesn't make that decision. I do. :-)

Send me one and see if it comes back.

If it does come back, use it as your cookie.

Don't send me a second cookie.

I might refuse that one.

No site needs more than one cookie, really.

If you've installed some forum/blog/whatever that has its own cookie,
I'll take it.

If you have google analytics with their goddamned 4 or 5 cookie setup,
I might take those, if I think you deserve to track my usage for site
tracking purposes -- which also sticks me with advertracking, but so
be it.

If you're sending out a bunch of cookies with names like 'username',
'user_id', 'name', 'password' (!), 'email', etc., I'm outta there,
because you clearly have no clue what you are doing...

As esoteric as this may also sound, the basic principles are also true
for supporting the most browsers and having a good clean design.

Send one cookie, see if it comes back, and if it does, tie everything
to that cookie.

You can also set up php.ini and use the built-in sessions with
http://php.net/session_start so that PHP will take care of this for
you.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie 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

Reply via email to