melinalt
asked on
http handler to check null requests .NET 3.0
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.
Thanks,
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.
Thanks,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.