IMG src =.

Source: Internet
Author: User

Although this problem has been taught N times. However, monitoring development was once again plagued by this problem in the past two days. They did not know how long they had been tossing and found me.

 

A help page, the session will be lost after browsing, and you need to log on again. This problem does not occur on other pages.

First, this page is a static page. Therefore, it is suspected that JS rewrite to Cookie will cause session loss, but no JS is found in the search.

Then it must be considered that some kind of resource loading causes an exception, and one kind of troubleshooting. When img src is replaced with IMG src1, the problem disappears, indicating that the image is loaded.

 

Since it is caused by image loading, the first consideration is that a large number of images are concurrent, leading to some image request times out, and the famous tomcat/JBoss

The request has no bugs cleared. However, when debug mode is enabled, image requests are quickly completed due to local debugging. No timeout occurs.

 

Suddenly, the session exception caused by src = "", which has been solved for a long time ago, because src = "" is resolved differently in different browsers, some may re-request the current page (a new request without the cache such as etag), and the session may be invalid. Some will be interpreted as "/", and the default page will be accessed, and the default page will be set to the login page and the session will be cleared many times on the verification server.

 

So whether there is src = "" in the search, there is actually one. Md.

Delete this src = "" and debug it again.

The whole world is quiet.

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.