there was an article on this at CFDJ I believe some time ago...I can't find the bloody thing though. Also, Ray Camden has a real cool Flash/CFC thingy that lets you monitor all your active sessions...real cool...you will have to bug him for this though...
Doug >-----Original Message----- >From: Simon Horwith [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, February 04, 2003 5:23 AM >To: CF-Talk >Subject: RE: CF Logins and Users Logged In > > >the method I'm suggesting soesn't require the use of a database at all >(aside from to initially authenticate users. Why not have a >structure (call >it application.loggedin for arguments' sake) with keys that >are structures >like so: > >keys stored will look like: > >application.loggedin[cfid&cftoken_ForUser1] >application.loggedin[cfid&cftoken_ForUser2] >when someone logs in you create these keys and set the val to Now() >and on each request loop over application.loggedin and kill >everything with >a DateDiff() larger than you want to allow. > >~Simon > > >Simon Horwith >Macromedia Certified Instructor >Certified Advanced ColdFusion MX Developer >Certified Flash MX Developer >CFDJList - List Administrator >Fig Leaf Software >1400 16th St NW, # 220 >Washington DC 20036 >202.797.6570 (direct line) >http://www.figleaf.com > > >-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, 04 February, 2003 5:09 AM >To: CF-Talk >Subject: Re: CF Logins and Users Logged In > > >Mmmm > >Using Simon Horwith's method, would an extra field need to be >created in the >usertable? > >He mentioned creating an application scope variable and >everytime a user >logs in adding a key (structure) to this variable. > >I may be wrong but by using this method, it seems to me that >no alterations >are need to my tables which is the best approach I feel. > >Could somebody confirm this is the case. > > >Also > >Taco - All users using the system will have javascript enabled >- what would >your suggestion be to end the users session when they log off? > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4