» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > ASP forums and Tips

ASP forums and Tips Talk about ASP Scripting. .net and Cold Fusion as well.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-26-2006, 02:21 PM
Mclaren Mclaren is offline
Junior Member
 
Join Date: Aug 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Mclaren is on a distinguished road
Cool application object

Hello members, help me

My asp application allows a number of users to log into it. Each user has a different type of access level (General User, Manager or Administrator). I want the administrator to be able to see how many other users are logged into the application at a particular time. How can I do this?????

Would the use of an application object work for this???
Reply plz -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 08-26-2006, 02:22 PM
fishy fishy is offline
OSP Addicts
 
Join Date: Jun 2006
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
fishy is on a distinguished road
Smile

As long as you have sessions enabled, it is quite easy.

In your global.asa file:

PHP Code:
Sub Application_onStart
Application("Count") = 0
End Sub


Sub Session_onStart
Application("Count") = Application("Count") + 1
end sub

Sub Sesion_onEnd
Application("Count") = Applcation("Count") - 1
end Sub



you can then get the value of the people connected by reading the Application("Count") variable. This of course assumes that to access any part of your site you have to log in. -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Reply


Thread Tools
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
123Together.com Releases Application Templates outsourcingplans Web Hosting News 0 02-06-2007 03:34 AM
IIS application settings maurice Web Hosting Industry 1 08-14-2006 03:18 PM
web based application jasmine ASP forums and Tips 1 08-09-2006 12:14 PM
Accessing MySQL from Excel application? Isabela MySQL Forums 0 08-04-2006 09:51 AM
ASP Error Codes - Description dam Introductions 1 12-07-2005 10:09 AM


All times are GMT. The time now is 09:14 PM.