Clearing Session in Global Application_Error
- by Zarigani
Whenever an unhandled exception occurs on our site, I want to:
Send a notification email
Clear the user's session
Send the user to a error page ("Sorry, a problem occurred...")
The first and last I've had working for a long time but the second is causing me some issues. My Global.asax.vb includes:
Sub Application_Error(ByVal sender As Object,…