OnBeginWebRequest error when manual log out from system

Hello All,

I ran into the situation where I encounter the error when I was trying to log out manually by clicking the logout link at the top right corner which also runs the OnBeginWebRequest in the background. It caused the error message to come out after user log out as I noticed that the flow has been run through again since 'logout' from the system is treated as a server request also. Can anyone help on this ? :)

I know that putting the flow of onbeginwebrequest in any of the common area of the app will run without much issue but is there any way of implementing the onbeginwebrequest system event instead of putting the code in the common area ?


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.