REG : localstorage state saving
REG : localstorage state saving
nirali
Posts: 13Questions: 5Answers: 0
can we set time duration to save values in localstorage using datatables ? I want to save that localstorage values until cookies are getting cleared. eg. suppose I cleared my cookies once in a year then is it possible to keep localstorage values until that time?
This discussion has been closed.
Answers
Use
stateDuration
to set a state saving duration.Allan
Thanks Allan,
Can I set "stateDuration": 60 * 60 * 24, value of stateDuration for infinite?
Per the instructions that Allan linked to (
stateDuration
) set the stateDuration to '0' (zero) for infinite (no time limit).Thanks a lot !!