title: Data Tables State Reset Using Localstorage
body: <p>I'm having problems using Data Table's (v1.10.6) save feature. </p>
  
  <p>Using the below parameters, it seems that saving and restoring state functionality works correctly, but after a random amount of time, the state gets overwritten with the default table layout. This problem seems to only occur after making table changes at night, then checking the site in the morning to find everything reset. Data Tables <em>usually</em> persists the table layout throughout the day, but there are fringe occurrences where table layout gets reset randomly during the day. Data Tables is the only location local storage is being set.</p>
  
  <p>Ideal behavior is that the state of Data Tables, reordering or adding columns, stays indefinitely persistent as a user changes the table.</p>
  
  <pre><code>    stateSave: true,
      stateDuration : 0,
      stateSaveCallback: function(settings, data) {
          localStorage.setItem('DataTables_Asset_List', JSON.stringify(data));
      },
      stateLoadCallback: function(settings) {
          return JSON.parse(localStorage.getItem('DataTables_Asset_List'));
      }
  </code></pre>
  
  <p>Plugins used:</p>
  
  <ul>
  <li>Data Tables Bootstrap</li>
  <li>ColReorder</li>
  </ul>
  
  <p>Any assistance is appreciated, thanks!</p>