tags:

views:

952

answers:

5
+5  A: 

Yes :)

I would speculate that the cookies were created by separate components of the website, which were created by separate teams of developers. We, of all people, should realize that this is often the case when we need to get some development done but do not have time to wait for collaboration or for another team to develop a necessary layer for us.

From wikipedia:

Relevant count of maximum stored cookies per domain for the major browsers are:

  • Firefox 3.0: 50
  • Opera 9: 30
  • Internet Explorer 7: 50
JoshJordan
A: 

When you write a program, do you use just one variable? No, right?

Same principle here - cookies are just key/value pairs that your program (server/client) can use.

Artem Russakovskii
You mean one cookies can only save one key/value pair?I've thought various key/value pairs can be stored in the same cookies.
ninikin
+1  A: 

Can one domain generate multiple cookies on visitor's web browser?

Yes. The exact limit depends on the browser, Internet Explorer used to accept 20 but increased this to 50.

If so, when user vists the website, which cookies will be delivered to server?

All of them

And why would a website generate multiple cookies?

So that you don't need to serialise all the data (which could be from unrelated parts of the system) in one cookie.

David Dorward
+1  A: 

Yes, one domain can generate many cookies. The maximum number varies by browser.

pianoman
A: 

-Every site can create any number of cookies it desires. (But it seams this may vary from browser to browser)

-When the user visits the web site all active cookies will be sent.

-It makes sense to have multiple cookies to store separate data. In an extreme comparison compare cookies to classes ;)

Sergio