Re: session cookies enabled?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, May 8, 2007 1:31 pm, ccspencer@xxxxxxxxxxxx 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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux