• The HttpContext class encapsulates HTTP-specific information about an HTTP request.
• This includes response/request headers, server variables, session variables, user information, and so on. Of particular interest is a property called Current, which returns an instance of the HttpContext class that represents the current HTTP request.
• Another important property in the HttpContext class is User, which contains security information about the user who made the Web request. The User property returns a type the implements the IPrincipal interface
Source: My Own | Asked In: Many Interviews |