I have made a simple chat application which uses long-polling approach using jquery,
function sendchat(){ // this code sends the message $.ajax({ url: \"s
The issue was because of session locking;
both send.php and listen.php files use session variables, so session is locked in listen.php file and the other file (here send.php file) can't be served after the session frees from serving another file ( here listen.php).
send.php
listen.php