CreateAuthenticationSession2 method

Create a eRoom session for a specified eRoom user.

Syntax


C++

HRESULT CreateAuthenticationSession2 (

            [in] BSTR loginname,

            [out,retval] IERUSession session);

Scripting languages
session = Object.CreateAuthenticationSession2(
   
loginname as String)

Parameters


loginname

eRoom loginname of the user for the session.

session

IERUSession containing the new session is returned.

Return value


C++

The return code.

Scripting languages

An authentication session in the form of an IERUSession.

Remarks


The caller should use ERCreateUserSession(), defined in SAAPIUtils.asp to set the session cookie on the client, like this:

set session=authenticator.CreateAuthenticationSession2 ("someusername")

ERCreateUserSession "", session.session

This creates the session only. A SAAPI program is responsible for authenticating the user before making this call.

Home

Applies to
IERUAuthenticator