I am trying to add CakePHP’s Security Component to my Application, but it slows down page load considerably (ie. if it took 2 seconds to for the server to respond to browser requests, now it takes 7 seconds) and it also prevents .ajax calls. Is there a reason why it is happening this way? Does anyone know how to fix it.
Note that, as soon as I remove Security from the Components list, everything goes back to working as normal.
Thanks
The security component breaks any ajax form submissions as it requires a security hash to be passed with the form values. It might work the first time you submit but won’t subsequent times.
As for slowing you down, no idea without more information.