Cat's original blog: http://zoechina.sinaapp.com /? P = 10
Cause:
Uploadify upload processing file (uploadify. in PHP), when a cookie or session is used, it is normal in IE, but fails in opera, chrome, and Firefox, the reason is that uploadify's use of cookies and sessions is limited by the inherent rules of Adobe Flash reference: http://www.antennule.net /? P = 241
Symptom:
Cookie. The session does not match the cookie and session left during the previous upload.
Solution:
During the upload, the cookie value is returned to the server again.
Here we use the configuration provided by uploadify and return it in post form.
'Scriptdata': {'firstname': 'ronni', 'age': 30}
API: http://www.uploadify.com/documentation/options/scriptdata/
In this way, we can get the value in form in the background.
Request.Cookies["userID"].Value
= HttpUtility.UrlEncode(Request.Form["userID"],Encoding.GetEncoding("UTF-8"));