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.
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.
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.
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
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.
Thanks, do you have an example of an httpModule for Session_Start and End?
https://www.google.nl/search?q=httpmodule+Session_Start&sugexp=chrome,mod=14&sourceid=chrome&ie=UTF-8
http://www.goatly.net/2012/1/25/hooking-into-session-start-events-in-an-http-module.aspx
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.
is working on a reply...