Using the CDO Session Object
Whether you build CDO applications by using ASP or by using some other development tool, the most important point to remember is you cannot create any other objects in the CDO library if you do not create a Session object successfully. In addition, you cannot access any data in Exchange Server unless you successfully log on to the server using the Session object.
The Session object is the top-level object in the CDO hierarchy. It contains session-wide settings and properties that return top-level objects. When using the CreateObject method in your applications, you use the ProgID of the Session object — Messaging Application Programming Interface (MAPI) Session — to create a CDO object. CDO does not make it possible for you to access any other objects in the library until you have logged on successfully using the Logon method of the Session object. The only exception to this is the SetLocaleIDs method, which sets the Locale and CodePage IDs for the user.
For additional information about the CDO Session Object, refer to https://msdn.microsoft.com/library/default.asp?URL=/library/psdk/cdo/_olemsg_session_object.htm in the Microsoft® Developer Network (MSDN™) Library.