rjgagui
Member
- Joined
- Nov 5, 2014
- Messages
- 18
- Programming Experience
- Beginner
please need some advice on this guys..
prevent dual login logic :
Login Form.
>> Checking if user is already logged in
Im currently using this logic in one of my system and the problem actually is the performance because for every 500 ticks the system updates the user log and my currently have 16 + users.
is there other way in preventing dual login???
prevent dual login logic :
Login Form.
- User's input username and password
- check if user is already logged in (see below)
- Continue to main form when not in used.
- a timer is enable tick interval 500
- every tick of the timer updates the loggedTime in the user database
>> Checking if user is already logged in
- get the last entry in user log of the user
- assigned loggedTime column to a variable then after an interval of 500 retrieve again the last entry in user log.
- if the the previous loggedTime is the same as the currently retrive loggedTime then the user account is not in use.
- else the account is already in use.
Im currently using this logic in one of my system and the problem actually is the performance because for every 500 ticks the system updates the user log and my currently have 16 + users.
is there other way in preventing dual login???