localStorage - What does it actually save?
localStorage - What does it actually save?
kraftomatic
Posts: 78Questions: 13Answers: 0
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.
Just wanting to confirm, for security reasons.
Thanks.
This discussion has been closed.
Replies
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