How To…Thread-safe Logon Validation

Question

“How can I perform thread-safe logon validation? I have defined a Server.SessionParameters for UserName and Password and am using the Server.OnValidateSessionParameters event.

Solution

The Server is a singleton. This example shows how use a Delphi TCriticalSection object to ensure thread safety.

Download: CustomSeverLogging.zip

Sample Delphi code: