StrataFrame Security Documentation Send comments on this topic.
SessionLock Properties

Glossary Item Box

SessionLock Properties

The SessionLock class contains 2 shared (static) properties that contain information and control aspects of the session locking:

  1. LastUserInput
  2. SessionLockKey

LastUserInput

The LastUserInput property is a read-only property that returns the System.DateTime of the last user input within the application.

Note: The LastUserInput property only applies to the application on which it is used. In other words, the DateTime returned will not be the value of the last user input within any running application, but will instead be the last user input, either mouse or keyboard, within the StrataFrame application from which it was called.

SessionLockKey

The SessionLockKey property gets or sets a System.Windows.Forms.Keys enumeration that represents the keyboard shortcut for the session locking. If the shortcut key is pressed and the SessionLock class is monitoring user input, the session will immediately lock.

The SessionLockKey is generally defined by the application developer and is set during the InitApplication() method. However, the key may be canged anywhere within the application and may even be customized by the end-user.

Sample - Setting the SessionLockKey [Visual Basic]
Private Shared Sub InitApplication(ByVal e As InitializingApplicationEventArgs)
    '-- Start the session locking monitor & set the quick key to lock the application
    SessionLock.StartSessionMonitoring()
    SessionLock.SessionLockKey = Keys.F11
End Sub

Sample - Setting the SessionLockKey [C#]
private static void InitApplication(InitializingApplicationEventArgs e)
{
    //-- Start the session locking monitor & set the quick key to lock the application
    SessionLock.StartSessionMonitoring();
    SessionLock.SessionLockKey = Keys.F11;
}