modify getTable.php to use cookie token