1. #1
    Sencha User
    Join Date
    Aug 2010
    Posts
    62
    Vote Rating
    0
    elbino is on a distinguished road

      0  

    Default Cookie grows to large in Firefox after storing grid data

    Cookie grows to large in Firefox after storing grid data


    Hallo there,

    I've got an application, based on ExtJS, having a grid to manage some data from a database. The grid columns are stateful and whenever I change the position of a column this will be stored in a cookie. Moreover I can change the role and show other grids going to these roles. When changing some column positions this information will be stored in the cookie, too. If I do this a couple of times the cookie will grow too large. In my case it has more than 7k. I know the cookie is limited to 4k, but ExtJS does not recognize this. Or Firefox, maybe? Well, in fact my web application does not accept requests, anymore and the page stays blank. Is this a known bug? is anyone familiar with this problem and is there a known solution?

    Thanks & greetings,
    Thomas

  2. #2
    Sencha Premium Member
    Join Date
    Oct 2010
    Posts
    1
    Vote Rating
    0
    ap- is on a distinguished road

      0  

    Default


    I have the same problem, testing my application with IExplorer. The cookie file size keeps growing: data are added after the following actions:
    - resize of the window
    - changing the grid's column visibility

    Thanks,
    Andrea

  3. #3
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    83
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    First, stop all your components from storing state:
    Code:
    Ext.Component.prototype.stateful = false;
    Next, only enable state on components you actually want to keep state for:
    Code:
    stateId: 'unique-key-to-store-state-in',
    stateful: true
    ps. For grids, don't forget to give each column an id, because that is used to keep it's state.

  4. #4
    Sencha User
    Join Date
    Aug 2010
    Posts
    62
    Vote Rating
    0
    elbino is on a distinguished road

      0  

    Default


    Thanks a lot! :-) I will keep that in mind. In my case the problem was a requestheader size of only 8192 byte. I was able to increase the headersize in the Tomcat server.xml. Now everything works fine.

    Greetings,
    Thomas

Similar Threads

  1. cookie stops storing Values!!!
    By extjs1111_user in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 10 Oct 2010, 11:30 PM
  2. Request entity too large - cookie problem
    By bhasheer in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 4 Nov 2009, 12:02 PM
  3. [2.0.2] Editable Grid Text Box too large in Firefox 3.x
    By smcguire36 in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 14 Jan 2009, 10:14 AM
  4. How to wrap the grid column data if data length is large
    By anuj166750 in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 13 Oct 2008, 4:07 AM
  5. Need a Grid that grows with data (No Vertical Scroll)
    By hookedOnXML in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 7 Dec 2007, 7:04 PM

Thread Participants: 2