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

Notification

Icon
Error

Options
Go to last post Go to first unread
Zeko  
#1 Posted : Thursday, November 20, 2008 5:54:20 AM(UTC)
Zeko

Rank: Newbie

Groups: Member
Joined: 11/19/2008(UTC)
Posts: 8

I am using the Aurigma Dual uploader javaAppletVersion = "5.5.2.0";

My website is using .NET 2.0 and ASP .NET Forms Authentication. I was having trouble get the uploader to work in FireFox b/c of the security (which wont let Javascript read 'HTTP_Only' cookies which is used bu the forms authentication). I found a solution to that on this forum which was passing the Authentication cookie to the uploader as shown below:

getImageUploader("ImageUploader1").AddCookie('AC7.ASPXAUTH=' + AuthenticationCookie);

This worked and I am able to upload files but the problem is that "the session is lost" when it is redirected bu t the uploader to the upload_handler page (has a new sessionId).

I tried passing the ASP.NET_SessionId by using the AddCookie method but that doesnt work.

getImageUploader("ImageUploader1").AddField("ASP.NET_SessionId ", SessionId);

Can I pass two cookies to the uploader.

Now my question is why is the sessionID different even though the Forms Authentication works.

Please let me know I have tried almost every fix on this forum Brick wall THANK YOU.

Dmitry  
#2 Posted : Thursday, November 20, 2008 3:45:56 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Hello,

As far as I understand you use session mamagement mechanism as well as authentication on your site. These two mechanisms are represented by 2 cookies. You are right that you need to specify two cookies, as I understand from your post they are: AC7.ASPXAUTH and APS.NET_SessionId.

In your case you need to pass these two cookies in one AddCookie call:

Code:

getImageUploader("ImageUploader1").AddField("AC7.ASPXAUTH =....; ASP.NET_SessionId=...."); 
Sincerely yours,

Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!

Zeko  
#3 Posted : Friday, November 21, 2008 3:58:55 AM(UTC)
Zeko

Rank: Newbie

Groups: Member
Joined: 11/19/2008(UTC)
Posts: 8

Thanks a lot Dmitry!!

That worked like a charm. :d/

I used the following:

getImageUploader("ImageUploader1").AddCookie('ASPXAUTH=' + variable + '; ASP.NET_SESSIONId=' + variable2);

thanks again.

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.