How to stop a jQuery called php function when user clicks link -


I'm using jQuery to call php functions. It works fine except that when a user clicks on a link (if the PHP function has not been executed), then the new page will not start loading until the PHP function is over.

Is there a setting in jQuery that I need to change?

Are you using sessions in your PHP code?

If 2 PHP processes are running using the same session, one process will block (wait) till the end of the second.

Try calling call session_write_close () as soon as possible to prevent it from running.

For more information.

Comments