Think I have this licked... The problem was with the Security CSRF
protection. If you're set up to use a token only once,
your second Ajax request will get black-holed because the token has
expired.
I'm not sure if this is the best way to handle multiple Ajax requests
with CSRF, but it seems to work. I added the
following to my Controller to ignore CSRF for this particular action:
public function beforeFilter() {
if ($this->action == 'check') {
$this->Security->csrfCheck = false;
}
}
It now lets me process multiple requests without having to reload the
page.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php