localStorage - What does it actually save?

localStorage - What does it actually save?

kraftomatickraftomatic Posts: 78Questions: 13Answers: 0
edited March 2013 in General
When remembering sort order, or columns to display (via ColVis), what does localStorage/state saving actually store? I assume it's the preferences in the table, based on array position or something similar. Not the actual data, correct?

Just wanting to confirm, for security reasons.

Thanks.

Replies

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    > Not the actual data, correct?

    No data from the table's contents - no.

    It stores the paging position indexes, search information and sorting information so they can be reapplied to the same table, but nothing about what the data itself actually shows.

    You can use your browser's security options to look at the local storage item, or use fnStateSaveParams in DataTables to dump the object out and take a look for yourself.

    Allan
  • kraftomatickraftomatic Posts: 78Questions: 13Answers: 0
    Great, thanks Allan.
This discussion has been closed.