Cookie size limit handling is wrong

Cookie size limit handling is wrong

pollepolle Posts: 3Questions: 0Answers: 0
edited November 2012 in Bug reports
In 1.7 some new cookie handling was introduced. Specifically, it deletes datatable cookies if the *total* size of cookies is larger than 4Kb. This is not correct. The cookie size limit of 4Kb is *per* cookie and not the sum of cookie sizes. This limit is easily hit if using several large-ish datatables.

Documentation of cookie size limits here:
http://www.ietf.org/rfc/rfc2109.txt (6.3 Implementation Limits)

I believe the entire loop that deletes cookies in _fnCreateCookie() should be removed.

Replies

  • allanallan Posts: 63,687Questions: 1Answers: 10,500 Site admin
    Cookies for state saving are removed in 1.10 - this change has already been made as part of the 1.10 development, with localStorage being used in preference, so we won't be making any additional changes to the cookie handling in DataTables (since there will be none :-) ).

    Allan
  • pollepolle Posts: 3Questions: 0Answers: 0
    Thanks for the quick answer.

    Does this mean that you are dropping support for browsers not supporting HTML5 in version 1.10?
This discussion has been closed.