Home >Web Front-end >JS Tutorial >Solution to the problem of uploadify losing session under Firefox_javascript skills

Solution to the problem of uploadify losing session under Firefox_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:26:371421browse

Today I encountered a problem when using uploadify to upload the plug-in. Since I have permission management in the background, each request has to read the session to determine the permission. However, when using this plug-in, I found that uploading cannot be done after logging in. The reason is that when reading the session, it is considered that there is no permission. It was intercepted. Later, the session ID generated when logging in was printed in the background and the session ID was read when uploading. As expected, it was different. I searched online and found that many people have encountered this problem. Now I will post the solution. Come out:

Let me talk about my environment first. The background is using JSP, and the version of uploadify is 3.2.

Configuration in the JSP page:

Copy code The code is as follows: