stateSave and stateDuration set to -1, nothing in session
stateSave and stateDuration set to -1, nothing in session
nWidart
Posts: 4Questions: 2Answers: 0
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.search
key is empty.It works though when using the global search. Then the
search.search
key is correctly set.I'm setting the search options like so:
Where the
columnIndex
should be the#
in the sessionStoragecolumns.#.search.search
key.Any tips ?
Thanks