Hi.
I need to check that a user does not log onto my app twice, by this I mean that it might sometimes happen that two users use the same username and password, at the same time, from two different locations, connecting to my DB.
I wish to "check" if the account/user is allready logged into the DB.
I suppose I can write a update script which updates a field in the DB, and writes the account of whoever has logged in. This will pose a problem if the app unexpectedly terminates or the power cuts, leaving my app not being able to "clear" the field in the DB....hence next time he/she loggs on, it will tell them that the user is allready logged on!!!
Any ideas or suggestions will be greatly appreciated.
*****************************************
May the Code Be With You...![[lightsaber] [lightsaber] [lightsaber]](/data/assets/smilies/lightsaber.gif)
----------
x50-8 (X Fifty Eigt)
I need to check that a user does not log onto my app twice, by this I mean that it might sometimes happen that two users use the same username and password, at the same time, from two different locations, connecting to my DB.
I wish to "check" if the account/user is allready logged into the DB.
I suppose I can write a update script which updates a field in the DB, and writes the account of whoever has logged in. This will pose a problem if the app unexpectedly terminates or the power cuts, leaving my app not being able to "clear" the field in the DB....hence next time he/she loggs on, it will tell them that the user is allready logged on!!!
Any ideas or suggestions will be greatly appreciated.
*****************************************
May the Code Be With You...
![[lightsaber] [lightsaber] [lightsaber]](/data/assets/smilies/lightsaber.gif)
----------
x50-8 (X Fifty Eigt)