PassportIdentity.TicketAge Property
.NET Framework 3.0
Gets the time, in seconds, since the last ticket was issued or refreshed.
Namespace: System.Web.Security
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
// Declare new PassportIdendity object as variable newPass.
System.Web.Security.PassportIdentity newPass =
new System.Web.Security.PassportIdentity();
// Build a string with the elapsed time since the user's ticket was
// last refreshed with the Passport Authority.
String sElapsedTime = "Elapsed time since ticket refresh: "
+ System.Convert.ToString(newPass.get_TicketAge())
+ " seconds.";
Community Additions
ADD
Show: