I am currently working on some online shop so far so good. The only worry is I don't want to use built-in authorization functions. I want to do something different, to use Global.asax file. To catch Request.RawUrl in Application_BeginRequest so in the moment request is sent and to check for a specific folder if it is requested and to redirect back to log in if it is not authorized. The reason why I don't want to use built-in is because of the database. I want my own custom made database because there is many things I have done that I want to have full control of it. Yes, I saw many tutorials as recommended here before. I have searched for this stuff for a few days already saw many tutorials on how to customize those built-in functionalities.
Maybe my question looks complicated but in the end, I will ask simply. Is it safe to intercept each request in Global.asax file? And is it good idea to use Application_BeginRequest or something else?
Thank you kindly, everyone.