Community Auth Token Name |
Skunkbad,
After some trial and error, I just decided to change all of my AJAX code to use token versus my_token. This seems to work, for the first submission. In a previous forum post of mine you stated "Since using a token removes it from the array of tokens, if you are using AJAX then you need to pass back a new token, and apply it to the hidden form element. You get a new token with $this->tokens->token();". I have a table of records and a delete button on each row. As the first deletion works and the subsequent clicks fails, this means the token was removed from the jar. So based on your statement, I should pass back a new token from the AJAX call in my JSON response and update (via JQuery) the current hidden form element to contain the new token value, correct? |
Welcome Guest, Not a member yet? Register Sign In |