REG : localstorage state saving

REG : localstorage state saving

niralinirali 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?

Answers

  • allanallan Posts: 61,903Questions: 1Answers: 10,148 Site admin

    Use stateDuration to set a state saving duration.

    Allan

  • niralinirali Posts: 13Questions: 5Answers: 0

    Thanks Allan,

    Can I set "stateDuration": 60 * 60 * 24, value of stateDuration for infinite?

  • scholarlylabsscholarlylabs Posts: 16Questions: 0Answers: 2

    Per the instructions that Allan linked to (stateDuration) set the stateDuration to '0' (zero) for infinite (no time limit).

  • niralinirali Posts: 13Questions: 5Answers: 0

    Thanks a lot !!

This discussion has been closed.