Limiting MaxSessions but allowing one specific user in always

Hi,

I’m using a TDADBSessionManager and I want to license the server via concurrent users.

However, there is one “user” for an automatic process that I need to allow to login even if the MaxSessions has been reached.

The SessionManager component is on the serverdatamodule - how can I find out either the SessionID or the User ID from within the ServerDataModule? I see it’s visible via ClientID on the RemoteDataModules?

I’m using a custom RODL based Delphi server with DA v9.

Thanks

Thanks

I think, you can create special login service that will use personal TDADBSessionManager.
of course, this special login can be protected with Roles and can use different port & dispatcher and can be private.
as a result, this special login will always allow login.

another way: increase TDADBSessionManager.MaxSessions at detecting special “user”, and decrease at his logoff.

Hi Evgeny,

Thanks - I took the increase/decrease method in the LoginService.

Thanks for your help

Stuart