SetProfileTicket Method

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Sets an MSCSProfile ticket for an anonymous user.

Namespace:  Microsoft.CommerceServer.Runtime
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Sub SetProfileTicket ( _
    userID As String, _
    cookieSupport As Boolean _
)
'Usage
Dim instance As AuthManager
Dim userID As String
Dim cookieSupport As Boolean

instance.SetProfileTicket(userID, cookieSupport)
public void SetProfileTicket(
    string userID,
    bool cookieSupport
)
public:
void SetProfileTicket(
    String^ userID, 
    bool cookieSupport
)
public function SetProfileTicket(
    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 MSCSProfile ticket for an anonymous user.

Permissions

See Also

Reference

AuthManager Class

AuthManager Members

Microsoft.CommerceServer.Runtime Namespace