View Full Version : cookies: how many is too many?

08-11-2006, 06:07 PM
Hi everyone-

I've just finished up page that uses javascript to get information like browser, browser version, screen height, and screen width.
Each of these are written as a cookie (that will expire when the browser closes) - then taken into PHP and written to a database...
but how many is too many? Will browsers limit the number of cookies from a domain?
I'm currently using 4 or 5 - but I could potentially see upwards of 7 or 8 cookies - - most session cookies.
Will I run into problems with this?

08-11-2006, 06:23 PM
Do you really need that many cookies? What exactly are you going to be doing with them? It sounds like you are trying to get stats of your users. If so why are you trying to reinvent the wheel? There are many things out there already that collect stats from the user.

08-11-2006, 06:42 PM
Are you sure your hosting doesn't already do this for you?