Problem with Comet

Hi,

When I open http://localhost and Comet make connection using iframe it work perfectly.

If I tried to open http://localhost in another browser tab it keep delaying without show the page, however if I changed from http://localhost to http://127.0.0.1 it works.

How can I fix that?
LVL 12
Mohamed AbowardaSoftware EngineerAsked:
Who is Participating?
 
hernst42Commented:
If you start a session and do not close the session other request will wait in PHP till the session is free. As the session cookie is not send to 127.0.0.1 a new session wil be gernerated there and you can continue to work there. Check if you can close your session in the comet part with session_write_close().
0
 
Vimal DMSenior Software EngineerCommented:
Hi,

1) Find out from HTTPCONFIG file that accepts the "localhost and 127.0.0.1 " as the default IP

2) Sometimes using the browser setting may cause this problem



0
 
Mohamed AbowardaSoftware EngineerAuthor Commented:
Sometimes the web address become completely inaccessible, no matter the page I am trying to access is using sessions or not.

Any suggestions?
0
 
Mike DSolution ConsultantCommented:
Check your server logs for errors...
0
 
Mohamed AbowardaSoftware EngineerAuthor Commented:
Thanks,
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.