CreateAuthenticationSession method

Creates an authentication session cookie in the form SiteInvariantName=sessionKey.

In V. 7, this method is obsolete on IERUFacility.

Syntax


C++

HRESULT CreateAuthenticationSession(
   BSTR Username,
   BSTR* pSessionCookie)

Scripting languages
sessionCookie = Object.CreateAuthenticationSession(
   Username as String)

Parameters


Username

The name of the user requesting the session authentication cookie.

pSessionCookie

Upon return, an authentication session cookie in the form of a string facilityName=sessionKey.

Return value


C++

The return code.

Scripting languages

An authentication session cookie in the form of a string facilityName=sessionKey.

Remarks


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

Dim a
a = Split(sessionCookie,"=")
ERCreateUserSession a(0), a(1)

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

Home

Applies to
IERUAuthenticator