SetAuthTicket Method (String, Boolean)
Sets an encrypted MSCSAuth ticket for a registered user with the authorization time set to the default time window of 90 minutes.
Namespace: Microsoft.CommerceServer.Runtime
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Sub SetAuthTicket ( _
userID As String, _
cookieSupport As Boolean _
)
'Usage
Dim instance As AuthManager
Dim userID As String
Dim cookieSupport As Boolean
instance.SetAuthTicket(userID, cookieSupport)
public void SetAuthTicket(
string userID,
bool cookieSupport
)
public:
void SetAuthTicket(
String^ userID,
bool cookieSupport
)
public function SetAuthTicket(
userID : String,
cookieSupport : boolean
)
Parameters
- userID
Type: System..::.String
The user identifier. This parameter should be set to an empty string when the user logs off.
- cookieSupport
Type: System..::.Boolean
A value indicating whether the client supports cookies. true if the user supports cookies; otherwise, false.
Exceptions
Exception | Condition |
---|---|
CommerceAuthenticationException | The ticket could not be set. |
Remarks
Use this method to set an encrypted MSCSAuth ticket for a registered user with the default time window of 90 minutes.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.