views:

83

answers:

1

I did a flash application, login form in flash, authenticate in php, that was 3 months ago, the sending requests and response is very fast, means, when i click submit button, within 3 - 5 seconds it will has response from php.

Recently, i do another login in flash, using similar code as the previously i have done. Now, the sending request and respond is very long, each time may take up to 10 seconds to respond. Why is it taking so long yet the previous one is fast?

Same host, same php files, similar swf(not much changes in swf)

A: 

Use something like Firebug to tell you actual request/response time to see if delay is server side or client.

grantwparks
i see.. i will give it a try. Thanks
wonderer09
Really hard to tell why (i am not good at using firebug)
wonderer09
after loading the page with Firebug open, you should see the times for each individual server request (under the "Console" tab). Like when I reloaded this page, it shows "GET http://stackoverflow.com/blah/blah 200 OK 89ms". The last value being the elapsed time -- at least that's how I understand it.
grantwparks
You can also check at the Net panel what fases are slow, like is it the connection instantiation, or the responding. The former denotes a problem in connection or the server software, the latter a script or php-runtime problem.
Dykam