CreateLogonTokenEx Method

Applies To   See Also  

Use CreateLogonTokenEx to create a logon token that can be used for multiple logons. Specify the server name from which connections to the APS can be made using the token, the number of minutes, and the maximum number of logons for which the token will be valid.

Syntax
Function CreateLogonTokenEx (
    ClientComputerName As String,
    ValidMinutes As Long,
    ValidNumOfLogons As Long) As String
Parameters

ClientComputerName

The machine name from which connections to the APS can be made using the token.

ValidMinutes

The number of minutes the token will be valid. The default value is 1440 minutes (1 day).

ValueNumOfLogons

The total usable times for the token.

Remarks

The ClientComputerName parameter can be an empty string. For example,

Response.Cookies("LogonToken") = LogonTokenMgr.CreateLogonTokenEx("", 45, 10)

If it is an empty string, the logon token can be used to connect to the APS from any machine.

For security reasons, Crystal Enterprise has been configured so that the logon token expires after a maximum period of 1440 minutes (1 day). If the value of the ValidMinutes parameter exceeds this maximum token lifetime, then an error is returned. The recommended token lifetime is 120 minutes.



Crystal Decisions, Inc.
http://www.crystaldecisions.com
Support services:
http://support.crystaldecisions.com