What is the EnableSession property?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is the EnableSession property?
Rating:
The EnableSession property of the WebMethodAttribute class is used to enable session state for an XML Web service method. The default value of this property is False. Setting the EnableSession property for a Web method to True enables the session state for the method. When the session state is enabled, the XML Web service can access the session state collection directly from HttpContext.Current.Session or with the WebService.Session property.
To enable session state in an XML Web service method, the following conditions must be satisfied:
- The XML Web service must inherit from the WebService class.
- A WebMethod attribute must be applied to the XML Web service method with the EnableSession property set to True.
Rating:
Was this information helpful?
Other articles
- What is GDI+?
- What is enterprise policy?
- What is a Repeater control?
- What is the CreateObject function?
- Skills required for Microsoft test 70-305.
