1.

What is the maximum size of cookie?(a) 4 KB(b) 4 MB(c) 4 bytes(d) 40 KBThis question was posed to me in an online interview.The above asked question is from Session Management topic in section Session Management, JSP & API of Java

Answer» CORRECT option is (a) 4 KB

The explanation is: The 4K is the maximum size for the ENTIRE cookie, including NAME, value, expiry date etc. To support most browsers, it is suggested to keep the name under 4000 BYTES, and the overall cookie size under 4093 bytes.


Discussion

No Comment Found

Related InterviewSolutions