Microsoft KB Archive/195682

{|
 * width="100%"|

How to Pass CDO (1.x) Session to a Second ASP Page with ASPSess.exe

 * }

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 (1.1, 1.2, 1.21) 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:

"Download.gifoad Aspsess.exe now]" Release Date: Nov-18-1998

For additional information about how to download Microsoft Support files, click the article number below to view the article in the Microsoft Knowledge Base:

"Q119591 How to Obtain Microsoft Support Files from Online Services" Microsoft used the most current virus detection software available on the date of posting to scan this file for viruses. Once posted, the file is housed on secure servers that prevent any unauthorized changes to the file.

ASPSess.exe uses a Global.asa file to store the CDO (1.1, 1.2, 1.21) session object in an Internet Information Server (IIS) application session variable. By using the IIS session variable, you can use the same CDO (1.1, 1.2, 1.21) 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 (1.1, 1.2, 1.21) 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 (1.1, 1.2, 1.21) session, and stores that session in the IIS session variable "AMSession".
 * Page2.asp: Uses the IIS session variable to reference the CDO (1.1, 1.2, 1.21) 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 kbGrpDSMsg kbgraphxlinkcritical

Issue type :

Technology : kbAudDeveloper kbCDOsearch kbExchangeSearch kbCDO120 kbCDO121