How to use Zend Framework Form Hash (token) with AJAX
Posted
by nvoyageur
on Stack Overflow
See other posts from Stack Overflow
or by nvoyageur
Published on 2010-03-19T03:18:39Z
Indexed on
2010/03/19
3:21 UTC
Read the original article
Hit count: 548
I have included Zend_Form_Element_Hash into a form multiplecheckbox form. I have jQuery set to fire off an AJAX request when a checkbox is clicked, I pass the token with this AJAX request. The first AJAX request works great, but the subsequent ones fail.
I suspect it may be once the token has been validated it is then removed from the session (hop = 1).
What would be your plan of attack for securing a form with Zend Framework Hash yet using AJAX to complete some of these requests?
© Stack Overflow or respective owner