Tuesday, August 4, 2009

Re: multiple requests via ajax in cake

Sidney,

yes, the sessions in cake are problematic,

I tried this but unsuccessfully, I still having the same problems.

Tks!

Sidney escreveu:
When doing a lot of AJAX you can run into session problems.  Try changing the Security.level setting in core.php to medium from high. This worked for me in a similar situation.  HTH.  On Aug 3, 1:14 pm, Fabrizio Marmitt <fabriziomarm...@gmail.com> wrote:   
again....  I'm having some problems with "cake" to make several requests in the same time with ajax.  Here is the thing: I have a validator of forms in js which makes a "post" in a php file (cake) which responds "true" or "false" to it. When validation is done individually, it's perfectly, but when I do multiple validations in the same time, the php file simply does not responds and prints some errors on the screen.  I think it is a problem in "session system" of the cake, since the id of the session always changes with each request.  Since Now, I appreciate the help.  Fabrizio Marmitt escreveu:      
olá! estou com um problema no cake ao fazer diversas solicitações do tipo "post" com ajax no cake.       
O que está acontecendo é o seguinte: tenho um validador de formulários em js e ele faz um "post" em um arquivo php (cake) que responde "true" ou "false" para o js. Quando a validação é feita individualmente, ocorre perfeitamente, porém, quando faço várias validações ao mesmo tempo, o arquivo php simplesmente não responde e imprime erros na tela.       
Penso que é algum problema nas "sessions" do cake, uma vez que a chave muda a cada solicitação.       
Desde já agradeço a ajuda.       
----------------------------------------------------------       
hello! I'm having some problems with "cake" to make several requests in the same time with ajax.       
Here is the thing: I have a validator of forms in js which makes a "post" in a php file (cake) which responds "true" or "false" to it. When validation is done individually, it's perfectly, but when I do multiple validations in the same time, the php file simply does not responds and prints some errors on the screen.       
I think it is a problem in "session system" of the cake, since the id of the session always changes with each request.       
Since Now, I appreciate the help.       
P.S. Sorry my bad english       
    


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: