title: How to set session value in Handler in asp.net
body: <p>I am using uploadify to upload  a audio file. It uses the handler upload.ashx to upload the file to the server. I want to get the file path in my aspx page. SO I am trying to set a session in handler so that I get the file path in aspx but I am not able to do so. How can I get the value of file path from handler to .aspx page</p>
  
  <pre><code>public class Upload : IHttpHandler {
  
      public void ProcessRequest (HttpContext context) { 
         string savepath = context.Server.MapPath(tempPath);
         context.Session["AudioFile"] = savepath;
  
     }  }
  </code></pre>
  
  <p>Nullreference exception thrown: Object reference not set to an instance of an object.</p>