On Jun 15, 2007, at 11:01 AM, Dave Watts wrote:

>> I tactually had a logout button in place and working for a
>> while, but I figure nobody will actually use it...
>>
>> "A logout button... why would I use that? I'll just close the
>> window and save myself the hassle."
>
> Maybe you could use the JavaScript onUnload event to capture logout
> information?

This is what I've been thinking. I'll have to read up on using JS to  
call a cfc or cfm "behind the scenes".

>
>> I also thought about updating a timestamp every time they do
>> something. I have a function that they call once every minute
>> so I could do an update there, but I don't see a way to have
>> CF constantly monitor the db checking for outdated timestamps.
>
> Maybe you could store this as part of your session data, instead of  
> (or in
> addition to) the database.

I could do that, but the stumbling point is not really where to store  
the data, but how/where to have CF monitor these values and do  
something with them, without that CF activity being tied to any or  
all users.

My current solution works in that the users are getting deleted when  
their session ends, but that can take up to 2 minutes. I'm now just  
trying to find a way to do it immediately. I think the JS solution  
will probably be the key.

Thanks again!

>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
>
> Fig Leaf Software provides the highest caliber vendor-authorized
> instruction at our training centers in Washington DC, Atlanta,
> Chicago, Baltimore, Northern Virginia, or on-site at your location.
> Visit http://training.figleaf.com/ for more information!
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Macromedia ColdFusion MX7
Upgrade to MX7 & experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281316
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to