Hi,
I'm currently re-writing a login system (CF5) and there's a requirement
that there can only be one login per user id. Rather than disallow the
second login (with the same id) they want to allow the person who is
making the second login to choose whether to kick the other user out, or
wait until they've finished.
So, they're suggesting that I should do all this by directly meddling
with the client variables database (can't use application vars). E.g.
When a user logs out, delete the rows from the cdata & cglobal tables
that correspond to that user id and application.
To make their requirement work I'd also have to follow logic like this:
On login
query client vars db for user id (searching in the cdata.data column)
if user id active
return user option to log other user out.
if log user out
Update the cdata.data with a new client var indicating a remoteLogout
I think this is all possible, but I've a feeling of reluctance at
directly meddling with CFs session management tables.
What do you think?
Thanks
Ben
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]