RE: [PHP] session cookies enabled?

2007-05-08 Thread WeberSites LTD
I don't think that there is a difference between session or regular cookie
acceptance.
Have a look at the 1st code example here :

http://www.php-code-search.com/?q=cookie%20support

berber 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 08, 2007 8:31 PM
To: PHP List
Subject: [PHP] session cookies enabled?

Hello, 

How does one check to see if the user's browser accepts session cookies? 

Best, 

Craig 


 --
 - Virtual Phonecards - Instant Pin by Email  -
 -   Large Selection - Great Rates-
 - http://speedypin.com/?aff=743co_branded=1 -
 -- 


**
**
*  Craig Spencer *
*  [EMAIL PROTECTED]*
**
** 

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

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



Re: [PHP] session cookies enabled?

2007-05-08 Thread Richard Lynch
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