Plumtree EDK (Enterprise Web Development Kit) 5.4.0

RemoteSessionFactory.GetExplicitLoginContext Method (Uri, String, String, Int32)

Returns an IRemoteSession with the same security context in the portal as the specified user.

public static IRemoteSession GetExplicitLoginContext(
   Uri endpoint,
   string username,
   string password,
   int sessionDurationInMinutes
);

Parameters

endpoint
the SOAP endpoint
username
the username whose security context to use
password
the user's password
sessionDurationInMinutes
the number of minutes the session is valid. sessionDurationInMinutes must be positive and no greater than one day (60 * 24)

Return Value

an IRemoteSession object representing the current session with the portal

Exceptions

Exception Type Condition
ArgumentException if sessionDurationInMinutes is less than one or greater than one day (60 * 24)
PortalException if the operation resulted in an error on the portal
HttpException if the endpoint URL is not valid

See Also

RemoteSessionFactory Class | Plumtree.Remote.PRC Namespace | RemoteSessionFactory.GetExplicitLoginContext Overload List