code: function ( settings, data ) {
  			try {
  				localStorage.setItem(
  					'DataTables_'+settings.sInstance+'_'+window.location.pathname,
  					JSON.stringify(data)
  				);
  			} catch (e) {}
  		}
docs: Save the table state. This function allows you to define where and how the state
  information for the table is stored By default DataTables will use `localStorage`
  but you might wish to use a server-side database or cookies.
  @type function
  @member
  @param {object} settings DataTables settings object
  @param {object} data The state object to be saved
  
  @dtopt Callbacks
  @name DataTable.defaults.stateSaveCallback
  
  @example
  $(document).ready( function() {
  $('#example').dataTable( {
  "stateSave": true,
  "stateSaveCallback": function (settings, data) {
  // Send an Ajax request to the server with the state object
  $.ajax( {
  "url": "/state_save",
  "data": data,
  "dataType": "json",
  "method": "POST"
  "success": function () {}
  } );
  }
  } );
  } );