Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 7 of 7 total
Thread LicensedSessions, not taking effect?
Thu, Aug 22 2024 4:29 AMPermanent Link

Fady Geagea

Hello,
I recently downloaded EDB 2.38b2 client-server version, and am discovering the "LicensedSessions" property.

I set it as follows:
```Engine.LicensedSessions := 5;```

then activate the engine.

The same is done every time I launch my program.
I launch it 6 times on my local computer, and it does not raise any complaints (see attached image).

Also note that, according to edbsrvr.exe (see screenshot), the licensed sessions is still set to 4096.
Obviously, the application is using the same (default) config.

Any idea what am I missing?  and in case I were to run this over the network, should the config be on a shared folder?

Thanks!



Attachments: edbsrvr.png
Mon, Aug 26 2024 10:09 AMPermanent Link

Heiko Knuettel

Hi,

>>I set it as follows:
>>```Engine.LicensedSessions := 5;```

where do you set that? In your application (the client) or the server?

In my underrstanding (I might be wrong), if you set that in your applications EDBEngine, then it's valid only for non client/server database access. If you want to use the EDB Server, you need to configure the engine of the server - and that option doesn't seem to be available, which makes sense, because an user could simply edit the ini file to give himself more licenses.

So you basically would need a customized server to edit that property.
Mon, Aug 26 2024 10:45 AMPermanent Link

Fady Geagea

Hello, thanks for your answer.

Indeed I was confused about whether it should be applicable to File-based or Client-Server, but browsing the forums, my understanding was that people were using it for Client-Server.

As in one of his posts, Roy Lambert (original requestor of ExcludeFromLicensedSessions, IIRC) mentions 4096 session limit, which is unlikely to be applicable to a file-based (embedded) database.

My issue, same as his back then, is that I have background threads which should not count towards my limit of 5 licensed sessions.
Tue, Aug 27 2024 4:46 AMPermanent Link

Heiko Knuettel

As I said, I don't know for sure. It just seems odd to me that the client engine should dictate its settings to the server engine - what if one client says its 5, the next client says its 10 licenses?

I do my licensing (on c/s with a custom server) with a simple table: create an entry when user logs in, delete that entry when he logs off or doesn't ping for longer than a minute. This way I have complete control over what I count as a licensed access, and I can save additional information in that table.
Tue, Aug 27 2024 8:19 AMPermanent Link

Fady Geagea

that was my original plan, until I encountered the LicensedSessions properties, which made me reconsider the approach.
Maybe we'll hear back from users who made use of it for additional details.
Wed, Aug 28 2024 2:48 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Fady


If you want to manage a mixed or stand alone f/s or c/s  multi-user application you might want to have a look at this

**************************************************************************************************
Message-ID: <F3379557-4A1C-413D-824E-744E5B0F2FD3@news.elevatesoft.com>
Date: Tue, 11 Nov 2008 08:37:19 +0000
NewsGroups: elevatesoft.public.elevatedb.extensions
References:  <7B571930-F516-4A6E-B535-669D7B330DFD@news.elevatesoft.com>
Followup-To: elevatesoft.public.elevatedb.extensions
From: Roy Lambert <roy.lambert@skynet.co.uk>
Reply-To: Roy Lambert <roy.lambert@skynet.co.uk>
Return-Path:  <roy.lambert@skynet.co.uk>
Subject: Re: EDB User Count
X-Newsreader: TMaN from Roy Lambert - File Version: 1.0.0.0 R
Path:news.elevatesoft.com!news.elevatesoft.com
Lines: 247


This one is modified (with a little help from Tim) to be used at the application level. It creates a database in a specified disk location and will clean up after itself deleting both the table and the database.


The idea is that Terry's UserCount is linked to a database. If your app can connect to multiple databases and you have allowed set to 3 you can have 3 x databases using the app simultaneously. This version points all user access control to a single point.

WARNING - if you set the directory to the same as your data directory this could have nasty consequences possibly wiping the data - haven't tested it yet with AppUserCount but I know creating two databases in the one config file pointing to the same data and then DROPping does zap it. YOU HAVE BEEN WARNED

Roy Lambert
**************************************************************************************************



Roy Lambert
Wed, Aug 28 2024 2:41 PMPermanent Link

Fady Geagea

Hi Roy,
Much simpler than this: a desktop app that connects to a c/s EDB on the LAN, where I want to limit the number of login sessions to 5.
LicensedSessions looked to me like the perfect tool for the job - apparently, it is not.
Image