Session End not firing

Discussion in 'ASP.NET / ASP.NET Core' started by newera, Dec 13, 2009.

  1. Hi all,
    I am hosting a site on this server and I need to rely on the SessionEnd to delete orders which are still pending from paypal for those users who might have started the payment through paypal but might have closed the paypal window before doing the whole operation.
    I am also relying on the session end to delete files I am creating on the server.

    Now basically the Session end is not firing and I know that it is not firing because I am creating logs in the session start and end. The log for the session start is working correctly but the session end log is not been written even once.

    Can someone help me? In the web.config I modifed the session timeout to 1, and I am using forms authentication.

    Thanks
     
  2. This behaviour is by design - session_end can only be relied upon to be called in global.asax when using inProcess session management. You probably need to rethink your design to get the behaviour you need.

    I don't believe this perceived problem is related to the web application being hosted on the DASP server. A local test will prove this theory and you should get the same behaviour in that environment too.
     

Share This Page