how to keep current page open
how to keep current page open
aakash gupta
Posts: 5Questions: 3Answers: 0
$(document).ready(function() {
$('#dataTables').DataTable({
"order": [[ 0, "desc" ]],
"bStateSave": true,
});
} );
this is my code and it is working absolutely fine.
But when i am log out from my website "bstatesave" is still true.
I want that when user login bstatesave should not work.
anyone can suggest me please?
Thanks in advance
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Execute state.clear when you log out, or when your user logs in.
https://datatables.net/reference/api/state.clear()
thanks tangerine