Maximum no of cookies allowed in an application

Last post 05-17-2008 4:21 AM by kamii47. 1 replies.

Sort Posts:

  • Maximum no of cookies allowed in an application

    05-17-2008, 2:44 AM
    • Loading...
    • karang
    • Joined on 04-20-2007, 11:57 AM
    • Gurgaon, India
    • Posts 218

    Hi

     

    What are the maximum no of cookies allowed in the web application in .net.

    Can I find the explanation anywhere?

     

    Regards

     

    Karan     

    For .net,Javascript and Sql server articles and interview question visit


    http://guptakaran21.googlepages.com/mainpage
  • Re: Maximum no of cookies allowed in an application

    05-17-2008, 4:21 AM
    Answer
    • Loading...
    • kamii47
    • Joined on 05-26-2005, 4:04 PM
    • Karachi, Pakistan
    • Posts 1,520

    The number of cookies is not limited by ASP.NET.
    It is controlled by the browsers, per the W3C's 2109 RFC.

    http://msdn.microsoft.com/library/de...okietheory.asp

    Browser Cookie restrictions

    Browsers place restrictions on the number of cookies that can be held at any one time.

    The restrictions are:
    a.. 20 cookies maximum per domain.
    b.. 4096 bytes per cookie description.
    c.. 300 cookies overall maximum.

    RFC 2109 says at least these maximums.
    Netscape's specification and browsers say at most these maximums.

    There is now a pref in Mozilla and Firefox that allows you to modify the maximum cookies per host.

    IE still implements RFC 2109. I don't know if IE7 will address that.

    Kamran Shahid(MCSD.NET,MCPD.net[web])
    Sr. Software Engineer
    Netprosys Inc.
    www.netprosys.com

    Remember to click "Mark as Answer" on the post that helps U
Page 1 of 1 (2 items)