External Decryption
If you wish to allow decryption of the cookie provided by the External User Login method you will need to call the SessionDecryptUser method. This method is available to developers from the Users.asmx Web Service.
Parameters
Name | Requirement | Description |
---|---|---|
CookieValue | mandatory | This is the value portion of an encrypted cookie provided by the External User Login method. |
Returns
<SessionDecryptUserResult> <Error> <Code>string</Code> <Description>string</Description> </Error> <Success>boolean</Success> <ClientId>string</ClientId> <ClientSessionKey>string</ClientSessionKey> <UserId>string</UserId> <UserSessionKey>string</UserSessionKey> <Username>string</Username> <Firstname>string</Firstname> <Nickname>string</Nickname> <RememberMe>string</RememberMe> <UserLoggedIn>string</UserLoggedIn> </SessionDecryptUserResult>
Error - Code / Description
An error code and description if the call to the web service is unsuccessful and the Success if False.
1034 – Error trying to decrypt the cookie
1035 – Null cookie
1036 – Cookie contains invalid entries
Success
This will be either True or False. If False an error message will be provided in the Error result, if True the ClientId, ClientSessionKey UserID, UserSessionKey, Username, Firstname, Nickname, RememberMe and UserLoggedIn will be provided.
ClientId
This is the unique id for the client and is used in subsequent web service calls.
ClientSessionKey
This is the unique session key for the client.
UserId
This is the unique user id for the user as stored in the My Alerts database.
UserSessionKey
This is the unique key for the user and is only stored within the My Alerts application.
Username
This is the unique user name for the user as stored in the My Alerts database.
Firstname
This is the first name of the user.
Nickname
This is the nickname of the user.
RememberMe
This is entry whether the cookie is set to remember the users details.
UserLoggedIn
This is used to indicate whether the user is logged in.