session set in ashx and get that session on aspx
<p>The following code is working on IE but not on Firefox.
The following code is  setting session on *.ashx file. </p>

<pre><code>public class Upload : IHttpHandler, IRequiresSessionState
{
    public string PATH = System.Web.HttpContext.Current.Request.MapPath("..") + @"\UploadFiles\";
    public string prefix = "ANNUAL_";
    public void ProcessRequest(HttpContext context)
    {            
        HttpPostedFile file = context.Request.Files["Filedata"];
        file.SaveAs(PATH + prefix + file.FileName);                
        HttpContext.Current.Session["filename"] = file.FileName;  
        context.Response.Write("1");
    }
}
</code></pre>

<p>Getting session in *.aspx file is as follows. Even though I can set value into the sessions in *ashx file, the session value is null when session arrives in the *.aspx file.
How can I solve my problem? Could you please give any solution about my problem?</p>

<pre><code>using System.Web.SessionState;
public partial class frmImport : System.Web.UI.Page, IReadOnlySessionState
{
    protected void btnSave_Click(object sender, EventArgs e)
    {
        string temp = HttpContext.Current.Session["filename"].ToString();
    }
}
</code></pre>
