Cold Fusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingCold Fusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old May 9th, 2006, 09:26 PM
Cursian Cursian is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2006
Posts: 1 Cursian User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 m 36 sec
Reputation Power: 0
Sessions? Cacheing? maybe and Event Gateway?

Hello Everyone,
I am trying to create a page that will list who is currently logged in to my site, kind of like how this message board tells you how many people are viewing it.

I can do this by updating the database with time stamp every time a customer loads a page and then have another program run every 30min to see if the stamp has been updated and log them out if it hasn't. This really isn't a good way of doing it though.

I have been looking into sessions and cacheing as a possability for doing this but I can't figure out how.

I am running ColdFusion 7, any help would be greatly appreciated.

Thanks,
Cursian

Reply With Quote
  #2  
Old October 20th, 2006, 12:53 AM
Andy_S Andy_S is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2006
Posts: 3 Andy_S User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 51 m 2 sec
Reputation Power: 0
Events in application.cfc can be used for this. For example: Add username after login to variable in application scope wich lists logged users. When OnSessionEnd event occurs remove username for session which finished from list. And use list from application scope to display logged users at any time.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingCold Fusion Development > Sessions? Cacheing? maybe and Event Gateway?


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap