Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
shelly_saunders  
#1 Posted : Wednesday, February 18, 2009 6:50:47 PM(UTC)
shelly_saunders

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");
}
Tamila  
#2 Posted : Thursday, February 19, 2009 2:31:07 PM(UTC)
Tamila

Rank: Advanced Member

Groups:
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

Aurigma Support Team

UserPostedImage Follow Aurigma on Twitter!
shelly_saunders  
#3 Posted : Thursday, February 19, 2009 11:32:50 PM(UTC)
shelly_saunders

Rank: Newbie

Groups: Member
Joined: 2/18/2009(UTC)
Posts: 9

Thank you for your solution which has resolved my problem
Users browsing this topic
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.