Using Custom IHttpModule to save information on changing pages
<p>I have a site where users can use a particular page to enter in lots of information.  If the user navigates away from that page, I'd like to store a Session variable so that the user may return to that page and retain all the information added previously.</p>

<p>I've created a custom IHttpModule.  My intent was to utilize that to take notice when users click away from the page.  Then access the page, grab the variables from it, and store them for re-population later.</p>

<p>Here's what I've got:</p>

<pre><code>public void Init(HttpApplication application)
{
    application.BeginRequest += (new EventHandler(this.Application_MovePages));
}

private void Application_MovePages(Object source, EventArgs e)
{
    HttpApplication application = (HttpApplication)source;
    HttpContext context = application.Context;
    System.Web.Ui page;

    if (HttpContext.Current.Handler != null)
    {
        page = (System.Web.Ui.Page)HttpContext.Current.Handler;
    }
}
</code></pre>

<p>The problem is HttpContext.Current.Handler is always null.  I'm missing something here.</p>
