Session.login(username, password, server, requestInfo);


username string

The user name.

password string

The password.

server string

Name of the location to log in to. This is the name of the entry in the server list of the WWSettings.xml file.

requestInfo Array of string (Optional)

The list of request information that should be obtained with the logon. When not specified all information will be requested.

Return value

The login() method does not return anything. It throws an exception in case of an error.


The login() method performs a login to the Enterprise or Studio Server system.


Example title

Supported versions

Adobe Version Supported
CC 2017
CC 2018
CC 2019

Single Sign-On

When logging in on servers which have Single Sign-On (SSO) enabled, the login() call will not work on clients except for InDesign Server. SSO is available for all versions of Studio and the following versions of Smart Connection:

Adobe Version Supported
CC 2017 v12.3+ ✔
CC 2018 v13.1+ ✔
CC 2019 v14.1+ ✔