Accessing sessions

The NotesSession class provides a means for accessing attributes of the user environment and persistent information about agents. It also provides methods for accessing environment variables.

The user environment is either:

  • The server or workstation containing the script's database for an agent whose trigger is "After new mail has arrived" or "On schedule."
  • The workstation of the current user in all other cases.

A script has only one Domino® session, so successive calls to the New method return the same session handle. You do not need the session handle to access databases or perform other operations in Domino® Designer, only to access the session properties and methods.

See the following topics: