NexusDB Session component.  Default values are shown in the object inspector snapshot.

Icon

nxSession1

Properties and Events view

DelphiGuide_nxSession1 DelphiGuide_nxSession1(a)

Purpose

A session defines the security context for a database connection.  As such, a TnxSession component is required for each thread.  The TnxSession component must link to either a server engine or remote server engine and is required for all database applications.  Multiple sessions are needed to implement several simultaneous logins.  Login usernames and passwords, if used, are defined in the TnxSecurityMonitor, which contains secure server functionality.

Key Properties

BeepOnLoginError

Makes noise on a login failure.

Password

Set to a password that will be recognized by the server for the set username.

PasswordRetries

How often it brings up the password dialog and retries login with the server before it gives up and raises an error.

ServerEngine

Connect to a TnxServerEngine component.

UserName

Set to a username recognized by the server.

Key Events

OnLogin

Allows you to show your own custom login dialog.

Please also see Common Properties and Events for more details.

Home | Site Contents | Documentation | NexusDB Manual V4 | Delphi Guide | VCL Component Overview | Sessions and Databases