PassportIdentity.TimeSinceSignIn Property
.NET Framework 3.0
Gets the time, in seconds, since a member's logon to the Passport logon server.
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 last signed in with the Passport Authority. string sElapsedTimeSignIn = "Elapsed time since SignIn: " + newPass.TimeSinceSignIn.ToString() + " seconds.";
// 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 last signed
// in with the Passport Authority.
String sElapsedTimeSignIn = "Elapsed time since SignIn: "
+ System.Convert.ToString(newPass.get_TimeSinceSignIn())
+ " seconds.";
Community Additions
ADD
Show: