title: Override of OnActionExecuting and a .ashx file upload
body: <p>I have a MVC project that uses a 3rd party upload .ashx page. I also have the following override for OnActionExecuting(ActionExecutingContext filterContext):</p>
  
  <pre><code>public override void OnActionExecuting(ActionExecutingContext filterContext) {
     SessionContext context = (SessionContext)filterContext.HttpContext.Session[SessionConstants.SessionContext];
  
     if (context == null || context.Ticket == null) {
         filterContext.Result = new RedirectResult(TimeoutRedirectUrl);
         return;
     }
  
     base.OnActionExecuting(filterContext);
  }
  </code></pre>
  
  <p>This is here to make sure users are still logged in when they visit MVC pages. However, after a user uploads a file it looks like the "context" is null and then OnActionExecuting() redirects the user.</p>
  
  <p>Why would there no longer be a context after a user uploads a file? I want them to still be logged in.</p>