Reply to Re: [PHP] sessioncookies?

Your name:

Reply:


Posted by Richard Lynch on 09/30/02 11:11

On Fri, March 18, 2005 8:30 am, William Stokes said:
> OK. so can I set 2 or more session cookies for the same user? Like this:
> setcookie("sess_id","$sess_id",0,"/");
> setcookie("cookie2","$another_variable",0,"/");
>
> If so is there a limit?

The browser is not required to keep more than N cookies.

I think N is 30.

It *also* is not required to keep more than X kilobytes in all the cookies
from your server combined.

X is some reasonable number.

It doesn't matter because...

> Or is it a bad idea for some other reason?

It's a Bad Idea because it's just more crap going back and forth over HTTP
(slow) and more annoying to those of us who surf with some discretion over
Cookies. If your site sends too many Cookies for me to decide if they are
"okay" or not, buh-bye.

Use session_start() which sends *ONE* cookie, and then you can store
whatever you want in $_SESSION to tie it all to "me"

--
Like Music?
http://l-i-e.com/artists.htm

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация