You would need to update the source and code in global.asax to wire up your events or you could try something that fed suggested i this post its near the bottom. The first suggestion means that everytime you upgrade you would need to update source code and compile / deploy.
The second suggestion will mean that every page on your site will hit the event and not just that session ?
If you just wants to ban a user, simply do it in the BeginRequest event. That way your httpmodule is completely independent of anything and doesn't need to be tied with umbraco. Place the httpmodule first in the list in the web.config and it'll have a higher priority than the umbraco http module. Simple, clean.
how to create httpmodules which inherits from umbraco
Hey everybody,
Can someone come up with a short example of how to create an httpmodule which will be able to run the OnSession_Start event on application level.
Thank you.
Scott,
You would need to update the source and code in global.asax to wire up your events or you could try something that fed suggested i this post its near the bottom. The first suggestion means that everytime you upgrade you would need to update source code and compile / deploy.
The second suggestion will mean that every page on your site will hit the event and not just that session ?
Regards
Ismail
Hey Ismail,
Thank you for your reply. I got the point there. Can you or someone else just come up with a simple httpmodule?
Thank you.
If you just wants to ban a user, simply do it in the BeginRequest event. That way your httpmodule is completely independent of anything and doesn't need to be tied with umbraco. Place the httpmodule first in the list in the web.config and it'll have a higher priority than the umbraco http module. Simple, clean.
Oooh thank you - that was a good idea :)
is working on a reply...
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.