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


Manager.HexPUID

Manager.HexPUID

The HexPUID property holds the Microsoft® .NET Passport Unique ID (PUID) for the currently authenticated user in hexadecimal form.

Syntax

Property Manager.HexPUID As String

Property value

String representing the PUID for the currently authenticated user in 64-bit hexadecimal form. If the user is not authenticated, an error occurs.

Example

The following code snippet displays the current authenticated user's PUID using the HexPUID property.

...
'Create a Passport Object
Dim oMgr
Set oMgr = Server.CreateObject("Passport.Manager")
Response.Write ("<br>Your HexPUID is: " & oMgr.HexPUID)
...

Remarks

The HexPUID property is read-only. The PUID in the .NET Passport profile can be used by sites to identify a user's record in a database. Use the PUID for all unique identification on your site. Sign-in names may potentially be recycled or even reassigned, but PUIDs are never reused.

See Also

Passport Manager Object