Getting a Session object

The Session object is the entry point for accessing Rational® ClearQuest® user databases. For ClearQuest hooks, a Session object is created automatically when a user logs on to the database, and is available through the Entity object. If you are writing an external application, you must create a Session object and use it to log on to a database.

After you have logged on to a database, you can use the Session object to:
In the context of a hook, to get a Session object from an Entity object, use the following syntax.
The GetSession method returns the current Session object.
For external applications, you must create a Session object, if you do not have an Entity object. If you want to use the AdminSession object, the same rule applies.

Feedback