web.config authorization problem with firefox

May 25, 2009 at 1:32 AM

   My authentication set like this .

    <authentication mode="Forms">
      <forms defaultUrl="index.aspx" loginUrl="userlogin.aspx" protection="All" name="ASPNET"></forms>
    </authentication>

    <authorization>
      <!--<deny users="?"/>
      <allow users="*"/>-->
    </authorization>

when user login the system ,  It work well under the IE7.0, but it doesn't work under firefox 3.0 .

So I tried use the uploader in firefox 3.0 only in the loginPage ,It work well.

I didn't know why .

May 25, 2009 at 1:55 AM
Edited May 25, 2009 at 1:56 AM

I found soluttion from the uploader docs this the url :

http://flajaxian.com/flajaxian.com/FileUploader2.0Help.html#HowToOvercomeFlashBug

Flash Debug Player Cookies/Session Bug

Flash debug player for Firefox has a bug of not transferring the cookies with the upload request.

In order to overcome the bug you need to add the following code to your Global.asax code behind file:

public override void Init()
{
    base.Init();
    base.BeginRequest += new EventHandler(this.BeginRequest);
}
void BeginRequest(object sender, EventArgs e)
{
    com.flajaxian.FileUploader.RegisterAspCookies();
}

This will register the cookies