Saturday, March 14, 2009

How many cookies can one set in the response object of the servlet

Question :How many cookies can one set in the response object of the servlet?
Also, are there any restrictions on the size of cookies? (Servlets)


Answer :If the client is using Netscape, the browser can receive and store 300
total cookies
4 kilobytes per cookie (including name)
20 cookies per server or domain

No comments: