SAMPLE: ASPSess.exe Passes CDO Session to Separate ASP Page

ID: Q195682


The information in this article applies to:
  • Collaboration Data Objects (CDO), versions 1.2, 1.21


SUMMARY

AspSess.exe is a sample that demonstrates how to pass a Collaboration Data Objects (CDO) Session object from one Active Server Pages (ASP) page to a second Active Server Pages page.


MORE INFORMATION

The following file is available for download from the Microsoft Download Center. Click the file name below to download the file:

Aspsess.exe
Release Date: Nov-18-1998

For more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address
http://www.microsoft.com/downloads/search.asp
and then click How to use the Microsoft Download Center.

ASPSess.exe uses a Global.asa file to store the CDO session object in an Internet Information Server (IIS) application session variable. By using the IIS session variable, you can use the same CDO session from a different Active Server Pages page as long as you use the same IIS session variable name. This is very useful in complex multi-page web-based CDO projects.

The included files have the following functions:

  • Logon.inc: Contains functions that allow authenticated log on to the messaging system.


  • Global.asa: Sets up and cleans up the IIS session variables.


  • Default.asp: Gets the user and mailbox names, creates a CDO session, and stores that session in the IIS session variable "AMSession".


  • Page2.asp: Uses the IIS session variable to reference the CDO session object created in the Default.asp page.


Steps to Install

  1. Create a new directory for the ASPSess.exe on the hard drive of a server with both IIS and Exchange Server installed. Copy the file to that directory.


  2. Run ASPSess.exe. The four files listed previously are created in the directory.


  3. Create a new virtual directory in IIS Management Console and set the authentication method to NTLM (NT Challenge/Response) only.


  4. Make sure that the permissions for the virtual directory allow script execution.


Additional query words:

Keywords : kbfile kbsample kbASP kbCDO120 kbCDO121 kbMsg
Version : WINDOWS:1.2,1.21
Platform : WINDOWS
Issue type :


Last Reviewed: January 14, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.