Clean StateSave when close browser
Clean StateSave when close browser
m75sa
Posts: 125Questions: 28Answers: 0
in DataTables
Hi, is it possible, with datatable, to clean the statesave when i close th browser?
I like the option to save state when I reload pages but I need to clean the state save after i close browser...
So, i can imagine to clean the state on page reload, but in this case it will clean every time the state... so i need only when i load the first time page or set the life of statesave during the browser session...
possible?
Answers
This SO thread discusses how to detect the browser or tab closing. You would then call
state.clear()
,Colin