|
Posted by Richard Lynch on 09/26/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
Navigation:
[Reply to this message]
|