Previous Topic: IsAuthorized Method—Determines Whether User Is Authorized

Next Topic: Logout Method—Logs the User out of the Session

Login Method—Performs Session Login and Validation

The Login method performs session login and validation. Before calling this method, call AgentResource‑>IsProtected for the target resource.

Syntax

The Login method has the following format:

Netegrity::AgentUser‑>Login(resource[, clientIP])

Parameters

The Login method accepts the following parameters:

resource (AgentResource object)

Specifies the resource to log in to.

clientIP (string)

(Optional) Specifies the client's IP address.

Return Value

The Login method returns one of the following values:

Remarks

To allow one user, who is already logged in, to log in again as another user, call AgentUser‑>Impersonate.


Copyright © 2010 CA. All rights reserved. Email CA about this topic