yeah - just a DB table. Its not EJB or som'thing. BTW a nice way to timeout client based is to use a listener filter.
Justin -----Original Message----- From: Paolo Piponi [mailto:[EMAIL PROTECTED]] Sent: 14 February 2003 11:19 To: '[EMAIL PROTECTED]' Subject: RE: [ cf-dev ] Login System - meddling with CFs session management I see no reason NOT to meddle. Just make sure you time out sessions so people don't have to close their own previous sessions. Secondly, you should never need to create records in the variable database, just delete the old. The new one would be created automatically. We have meddled with it and have had no problems. Paolo -----Original Message----- >From: Ben Lowndes [mailto:[EMAIL PROTECTED]] Sent: 14 February 2003 10:59 To: CF-Dev Subject: [ cf-dev ] Login System - meddling with CFs session management 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] -- ** 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] -- ** 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]
