Nice article regarding HttpContext. Very useful if you are looking forward to know where to use Application_BeginRequest event available in the Global file
protected void Application_BeginRequest(Object sender, EventArgs e)
Refer this link: http://odetocode.com/articles/111.aspx
Happy Coding!