Поделиться через


Manager.HasTicket

Manager.HasTicket

The HasTicket property indicates whether a user has a Microsoft .NET Passport Ticket as a cookie or on the query string.

Syntax

Property Manager.HasTicket As Boolean

Property value

Boolean value. The value is True if the Ticket was provided on the query string or is present as a cookie; otherwise, the value is False.

Example

For an example of this method, see Manager.TicketAge.

Remarks

The HasTicket property is read-only. The TicketAge property indicates only whether the Ticket exists, not whether it is current or stale. If a user has chosen to save a password and has signed in to your site before, then the user may perpetually have a cookie that has been issued by your domain.

To avoid run-time errors if a Ticket is not present in the calling domain, check the HasTicket property before checking TicketAge or TimeSinceSignIn

See Also

Passport Manager Object | TimeSinceSignIn