We help IT Professionals succeed at work.
Get Started

foxpro limit number of licenses

M_N_M
M_N_M asked
on
172 Views
Last Modified: 2016-05-23
Hello,

at the moment, I'm having a "simple" licensing system: when a users logs on, I set a logical to .T. When a user logs off, I set the logical to .F.

When the application crashes, I found a method (based on a text file) to set this logical back to .F. when the user reconnects afters an unexpected shutdown.

BUT this last method isn't waterproof, sometimes the user can't login anymore.

Is there a better method that can "see" when a user is logged in or not? I thought about a licensing server which counts the active connections (count the active TCP/IP connections) but I don't know how to start with it.

I also though about a method to use "RLOCKS" to check whether a user is logged in or not but that's not working because "RLOCK()" is still active when a user loses his network connection (the lock will be automatically released after a few minutes but not immediatly)

How do you guys fix this in foxpro?
I just want to limit the number of licenses so that my application can't be started of there are more then <x> active sessions.

Thanks!
Comment
Watch Question
This problem has been solved!
Unlock 3 Answers and 10 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE