IBM Cognos Sample Programs

security.sln - Logon, Logoff, and Diplay Login Information

The C# security sample program shows how to logon, logoff, and display login information.


Dependent Files

All associated files are contained in the security folder.

How To Run The Sample Program

Double click on the file ..\csharp\bin\security.exe

A window will be opened containing:
    - Run Option command button
    - Select Option combo box
    - URL text box
    - Results Display Window
Choose an option from the 'Choose Option' combo box, then click on the 'Run Option' button to run the sample program.

Expected Results

If security is enabled, the user will be prompted to logon, otherwise Anonymous authentication will be used. If the 'Get Logon Info' option is selected from the 'Choose Option' combo box, the Results Display Window will display the current logon information. If the 'Logoff' option is selected, the user will be logged out of the program.

Documentation

The IBM Cognos Software Development Kit Developer Guide contains additional information about the samples. See the chapter titled 'Methods' and the appendix titled 'Code Samples and Language-Specific Coding Practices'.

Please note that the samples are not intended to be treated as end-user applications. Refer to the sample code for examples of how to use the API when developing your own applications.