Re: Security component - multiple tabs and AJAX problem

2006-09-12 Thread nate

Sounds like a possible solution.  Open an Enhancement ticket at
https://trac.cakephp.org/


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Security component - multiple tabs and AJAX problem

2006-09-12 Thread konrad

I have read that, the hash value is regenerated on every request and
this make problems with working with multi tabs and ajax requests. OK.
What do you thing about the following idea to solve this problem? Let's
say we write PHP function ie. getToken(), which return current value of
token for logged user. Now we make AJAX function ie. updateToken(),
which will request getToken() and update every occurence of hidden
fields inside of current HTML code. Finally before every submit of form
we must call updateToken() and  next submit(). It could be very simple
solution. What do you think? (Sorry for my poor english).


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---