uploading multiple photos in Firefox causes lost session in ASP.NET Web Forms -
when use telerik ui asp.net ajax's telerik:radasyncupload control upload multiple photos (have preview before being uploaded), works on browsers in local dev environment , our test server. works on chrome , ie in our beta , prod servers. doesn't work on firefox in our beta , prod server; kicks user out , redirect them login page. debugged , found reason session lost. reason, firefox cause session lost.
our beta , prod servers have load balancer while our test server doesn't. try individual ip address (not using domain name) in beta/prod, still have same problem.
our code based on following link's sample code.
i not sure if problem related telerik control, or firefox problem. seems me more latter.
this problem weird. has been several weeks , still not able solve it.
we have fixed problem. problem still firefox's bug, indicated in post
the trick part how fix bug: delay 10 ms
before calling showthumbnail(...)
. notice cannot put delay inside showthumbnail(...)
, doesn't work.
window.currentfileuploaded = function (radasyncupload, args) { ... if (navigator.useragent.indexof("firefox") != -1) // if firefox, delay 10 ms. fix firefox bug!!! { settimeout(function () { showthumbnail(...); }, 10); } else { showthumbnail(...); } }
Comments
Post a Comment