Describe about HttpContext Class ?

 Posted by Chvrsri on 11/1/2010 | Category: ASP.NET Interview questions | Views: 4358 | Points: 40

HttpContext class:

• 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 | Alert Moderator 

Comments or Responses

Login to post response