When the execution of a program on the website is not completed, other pages cannot be opened during this period (not an Ajax problem)

Source: Internet
Author: User
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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.