When the execution of a program on the website is not over, you will not be able to open other pages during this period (not an Ajax problem). I have encountered a problem today and I don't quite understand the cause.
I am using wampserver to develop a website. after a user submits a form, a remote program is called locally for a long time (assuming about 20 seconds ), during this period, I open the home page of the website through a new tab and cannot open it all the time. the page can only be displayed after the remote program called previously ends.
However, if I use another browser (such as Chrome), I can access the website while waiting.
Thank you!
Reply to discussion (solution)
Is session used on your page?
Do you want to write a file for your operation?
It is estimated that the file is locked, and other tasks need to wait.
Reference: http://blog.csdn.net/fdipzone/article/details/43839851
If session is used on your page, it may be a session lock.
You can add session_write_close ();
Reference: http://blog.csdn.net/fdipzone/article/details/30846529
After testing, the problem was solved after the session was closed. thanks to the reply from the two moderators and learning!