How can I tell if statesave page no longer exists?
How can I tell if statesave page no longer exists?

My table:
var dataTables=$('.pagedTable').DataTable({
"processing": true
,"serverSide": true
,"stateSave":true
,"stateDuration": 60 * 60 * 24
,"ajax": {
"url":url
,"type":"post"
}
,"columns":[
{"data":"id","defaultContent":"0"}, etc
My code to clear state:
if(page doesn't exist){
dataTables.state.clear();
dataTables.draw()
}
I don't know how to tell if the page doesn't exist. I've tried dataTables.page.info() but the data it shows is the same whether my page has data or not.
This discussion has been closed.
Answers
After SO MUCH trial and error, I finally succeeded with this code: