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:



Other articles

Click here to Article home

Microsoft Certification MCSE: MCSA , MCTS, MCDST, MCAD, MCDBA, MCSE Messaging, MCSE Security
JAVA Certification: SCJP, SCWCD Cisco Certification: CCNA, CCENT, A+, Network+, Security+
Oracle Certification: OCP 9i, OCP 10g, OCA 9i, OCA 10g CIW foundation    EC-212-32    CISSP    Photoshop ACE    Adobe Flash ACE
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.
 
HACKER SAFE certified sites prevent over 99.9% of hacker crime.