AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# IGenericRequest.GetLoginToken Method

Returns the user’s login token from the request.

string GetLoginToken();

#### Return Value

The login token.

#### Remarks

The login token can be used to access the portal as the current user. To instantiate an `IRemoteSession` object, use `IPortletContext.GetRemotePortalSession()`. Note: The login token is new functionality in portal version 5.0; this method throws `ProtocolNotSupportedException` when used with any prior version of the portal.

#### Exceptions

Exception Type | Condition
--- | ---
NotGatewayedException | The request is not gatewayed.
ProtocolNotSupportedException | Used with a version of the portal earlier than 5.0.
NotInRequestException | The administrator has not configured the portal to send the login token to this portlet.

#### See Also

IGenericRequest Interface | Plumtree.Remote.Portlet Namespace