http handler to check null requests .NET 3.0
Posted on 2009-04-28
I have a VB .NET Web Application (.NET 3.0) which has custom session management (written by another developer).
Some times when the session objects are null the application displays the following error instead of redirecting the user to the login page.
"Object reference not set to an instance of an object".
To get rid of this message, I am thinking on creating an http handler that checks all requests looking for null values (if session object/value is null then redirect user to login page).
Unfortunatelly, I don't have experience with http handlers.
I will appreciate any references, links, code examples regarding how to build this handler.