Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Chris Knowles 141 posts 222 karma points
    Sep 24, 2012 @ 16:46
    Chris Knowles
    0

    Global.asax in 4.8.0

    Hi,

    Usually we'd delete the App_global.asax.dll file in the bin folder and use our own global.asax file but with 4.8.0 there isn't an app_global.dll file in the bin and when you try and inherit from umbraco.Global it doesn't work.

    Has this all changed in 4.8.0 because it works in 4.7.2? I need to setup some session variables but seem a bit stuck right now.

    Thanks

    Chris

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Sep 24, 2012 @ 17:23
    Stefan Kip
    0

    The Global.asax is evil and generally speaking a bad habbit.
    You should use HttpModules, which have all the capabilities of the global.asax and more.
    HttpModules are also much easier to use in other websites. 

  • Chris Knowles 141 posts 222 karma points
    Sep 25, 2012 @ 12:55
    Chris Knowles
    0

    Thanks, do you have an example of an httpModule for Session_Start and End?

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Sep 25, 2012 @ 13:33
  • Sebastiaan Janssen 5061 posts 15544 karma points MVP admin hq
    Sep 25, 2012 @ 14:23
    Sebastiaan Janssen
    0

    Please also note that 4.10.0 will introduce a global.asax file for MVC support again (but it won't be seperate dll), you'll be able to hook into events there. But yeah, httpmodules are a good way to go.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies