stateSave and stateDuration set to -1, nothing in session
stateSave and stateDuration set to -1, nothing in session
Hello,
I would like to access the current state. I've set the bStateSave to true, and stateDuration to -1.
But when performing a search operation and dumping the $_SESSION, nothing about datatables is present.
But it does save the state somewhere, because after a page reload it remembers the search query. It doesn't refill the input though, that's why I'd like to access the current state.
Thank you,
This discussion has been closed.
Answers
From what I understand it saves in the HTML5 sessionStorage.
But, when searching on a specific column, the
columns.#.search.searchkey is empty.It works though when using the global search. Then the
search.searchkey is correctly set.I'm setting the search options like so:
Where the
columnIndexshould be the#in the sessionStoragecolumns.#.search.searchkey.Any tips ?
Thanks