Rank: Newbie
Groups: Member
Joined: 2/18/2009(UTC) Posts: 9
|
I'm having a problem with Aurigma ImageUploader 5.7.24 in Firefox 3 (IE7 works fine). In Java Console as the upoad starts I see this trace Cookies:[.AuthCookie=60592A2FDB2FFDCB0262007200650074007A00720076000000D82E54707C92C90100D8EEBD9A4593C90100002F006300700032000000] Setting HTTPS params: Host=www.ourhost.com; Port=443 Starting upload network: Connecting http://www.ourhost.com:443/ with proxy=DIRECT Status =[500] UploadException occured ###Error occured### Looking down the call stack that follows it is evident that a Session variable is null in the Upload ASP.NET page set by my Action parameter. However, it appears from the console that the FormsAuthetication cookie has correctly been added. We are using ASP.NET 3.5 SP1 with FormsAuthentication. This error is consistent. Furthermore it consistently works in IE7. Your help would be greatly appreciated. I have implemented the code described in http://forums.aurigma.com/yaf_postst2071_PRB-Image-Uploader-for-Java-looses-HTTPonly-cookies.aspx exactly function ImageUploader1_BeforeUpload() { var iu = getImageUploader("ImageUploader1"); if (iu.AddCookie) iu.AddCookie('<%=FormsAuthentication.FormsCookieName %>=<%= Request.Cookies[FormsAuthentication.FormsCookieName].Value %>'); } . . . if (iu.getControlType() == "Java") { iu.addEventListener("BeforeUpload", "ImageUploader1_BeforeUpload"); }
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 3/9/2008(UTC) Posts: 554
Was thanked: 1 time(s) in 1 post(s)
|
Hello, As I understand you use FormsAuthetication cookie and Session variables too. If so in your code you should write something like this: Code:function ImageUploader1_BeforeUpload() {
var iu = getImageUploader("ImageUploader1");
if (iu.controlType == "Java")
iu.AddCookie('<%=FormsAuthentication.FormsCookieName %>=<%= Request.Cookies[FormsAuthentication.FormsCookieName].Value %>;' +
'ASP.NET_SessionId=<%= Session.SessionID %>');
. . .
if (iu.getControlType() == "Java") {
iu.addEventListener("BeforeUpload", "ImageUploader1_BeforeUpload");
}
Edited by user Thursday, February 19, 2009 2:36:26 PM(UTC)
| Reason: Not specified |
|
|
|
|
Rank: Newbie
Groups: Member
Joined: 2/18/2009(UTC) Posts: 9
|
Thank you for your solution which has resolved my problem
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.