getSessionToken (NotesSession - JavaScript)

Gets a session token for enabling sign-on to Domino® and WebSphere® servers in a domain that supports Single Sign-on.

Defined in

NotesSession

Syntax

getSessionToken() : string

getSessionToken(serverName:string) : string

Parameter Description
serverName The name of a server configured for Single Sign-on. If the server name is not specified, the code must execute on a server configured for Single Sign-on.
Return value Description
string The session token.

Usage

The token is unique for each user and is valid for the time specified in the Domino® Directory. The format of the token is consistent with the LtpaToken cookie used by a WebSphere® server when the SSO configuration of the Domino® server imports the Websphere server keys.

You can also get the token from the HTTP headers in a servlet with HttpServletRequest.getCookies().

See NotesFactory for usage and example