HttpModule gets InProc Session_Start, not Session_End

Discussion in 'ASP .Net' started by Steve Donnelly, Aug 30, 2003.

  1. I have an HttpModule that gets the
    SessionStateModule and registers for
    the Start and End events. Global receives
    both Start and End events (both timeout and
    when Session.Abandon() is called), but my
    module receives only the Start event.
    SessionMode is InProc. Commenting out Global's
    Session_End() does not have any effect.

    Does anyone know why Session_End() is not called?

    public void Init(HttpApplication application)
    {
    HttpModuleCollection modules = application.Modules;
    IHttpModule module = modules["Session"];
    if (module.GetType() == typeof(SessionStateModule ))
    {
    SessionStateModule stateModule = (SessionStateModule)
    module;
    stateModule.Start += (new EventHandler
    (this.Session_Start));
    stateModule.End += (new EventHandler
    (this.Session_End));
    }
    }
    Steve Donnelly, Aug 30, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?TkFU?=
    Replies:
    1
    Views:
    388
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    May 27, 2006
  2. =?Utf-8?B?TkFU?=
    Replies:
    1
    Views:
    379
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Jun 1, 2006
  3. Stefan Mueller
    Replies:
    5
    Views:
    517
    Steven Saunderson
    Jul 10, 2006
  4. Mufasa

    Session_Start/Session_End

    Mufasa, Sep 6, 2007, in forum: ASP .Net
    Replies:
    3
    Views:
    695
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Sep 6, 2007
  5. libsfan01
    Replies:
    5
    Views:
    235
    Jeff North
    Dec 20, 2006
Loading...

Share This Page