How can I restrict that the some ID can only login once in the some time

A

ad

I use Login control's Authenticate event to authenticate use.
I find that different users can use the same ID to login in the same time.
How can I restrict that the some ID can only login once in the some time
 
C

Charlie@NISH

Try to keep track of logins in database. On login enter a new record for
person, then on logout, remove record. When a new user logs in, first query
database to see if someone else is currently logged-in using his
credentials.

Charlie
 
A

ad

Thanks,
But how can I know a user logout?

Maybe the user press the logout button, or session time out or he close ID
without press the logout button.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top