Savestate
Savestate
PaulFreeWebs
Posts: 63Questions: 4Answers: 1
Hello Everyone,
I have a question about savestate, how long does it save your settings, like i set rows per page max to like 100, but i added options to change it to allow users to set more or less, but i notice it keeps going back to default after a while, so im wondering how long does it last?
This discussion has been closed.
Replies
It is up to you to set state duration.
https://datatables.net/reference/option/stateDuration
I just read a diff page, it said 2hrs is default, if I want it unlimited i need to do
"stateDuration": 0
correct?
The documentation tangerine linked to states:
Could you clarify what is not clear about that and I'll fix it?
Allan
I realised now, that 0 means it don't clear, btw what's the difference between -1 and 0?
Otherwise localStorage is used.
Allan
Thanks,
Which one is the better one to use, currently im using 0
Which do you want to use? Do you want it to be session based, or not? That's your answer :-)