How do I add a photo to my comment or blog entry?
Total Logn
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > ColdFusion > Total Logn 24 September 2008 03:51:04

  Recent blog posts: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

Total Logn

Johnson 24 September 2008 03:51:04
 Hi everyone,

Does anyone has any ideas on tracking the total login into an application?
- To track the total users currently login into the system
- When they logout, the total count will decrease by 1

Thanks in advance,
Johnson



~~~~~~~~~~~~~~~~~~~­~~~~~~~~~~~~~~~~~~~~­~~~~~~~~~~~~~~~~~~~~­~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoff­usion.com/banners/vi­ew.cfm?bannerid=67

Message: http://www.houseoff­usion.com/lists.cfm/­link=i:4:197428
Archives: http://www.houseoff­usion.com/cf_lists/t­hreads.cfm/4
Subscription: http://www.houseoff­usion.com/lists.cfm/­link=s:4
Unsubscribe: http://www.houseoff­usion.com/cf_lists/u­nsubscribe.cfm?user=­13123.11886.4
Donations & Support: http://www.houseoff­usion.com/tiny.cfm/5­4

Add comment
Raymond Camden 4 March 2005 15:45:04 permanent link ]
 Sure, use the new onSessionStart/onSe­ssionEnd features of CFMX7. This
is assuming you want to track a session, and not just when a person
logs on. If you only care when they logon, you can simply increment an
application counter. On logoff, decrease it. You also need to record
when they last hit. That way if their session expires, you can remove
them from the application scope. This is only necessary in CFMX
versions less then 7.0 though.

Some more hints - one nice way to track the sessions is to use a
struct in the application scope. You have a built in primary key for
each user called Session.URLToken, so you can do something like so:

<cfset application.session­s[session.urltoken] = now()>

This would log their unique ID and the time they hit the site. You
could run this code for every request if you wanted to keep it simple.
Your code to count the sessions would simply loop over the keys and
remove folks who have not hit the site in more minutes than your
session timeout. (Again, MUCH easier in CFMX7.) After "cleaning" the
struct, you can use structCount() to get the # of active users.

Make sense?



On Fri, 04 Mar 2005 20:18:41 +0800, Johnson <johnson-B0SNvtZArj­ReoWH0uzbU5w@public.­gmane.org> wrote:> Hi everyone,>
Does anyone has any ideas on tracking the total login into an application?> - To track the total users currently login into the system> - When they logout, the total count will decrease by 1>
Thanks in advance,> Johnson>

~~~~~~~~~~~~~~~~~~~­~~~~~~~~~~~~~~~~~~~~­~~~~~~~~~~~~~~~~~~~~­~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoff­usion.com/banners/vi­ew.cfm?bannerid=49

Message: http://www.houseoff­usion.com/lists.cfm/­link=i:4:197429
Archives: http://www.houseoff­usion.com/cf_lists/t­hreads.cfm/4
Subscription: http://www.houseoff­usion.com/lists.cfm/­link=s:4
Unsubscribe: http://www.houseoff­usion.com/cf_lists/u­nsubscribe.cfm?user=­13123.11886.4
Donations & Support: http://www.houseoff­usion.com/tiny.cfm/5­4

Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > ColdFusion > Total Logn 24 September 2008 03:51:04

see also:
[JCA/JBoss] - Re: How to set Isolation…
[JBoss Portal] - Re: fix the position…
[JBoss Portal] - Re: Is it possible to…
пройди тесты:
Do you really know yourself?
see also:
Nintendo makes $6 profit on each Wii…
PS3 firmware update adds full screen…
Free iPod nano raffle for Christamas

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .