Print Page | Close Window

Active Users

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=6323
Printed Date: 31 March 2026 at 5:05am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Active Users
Posted By: vshriniwasan
Subject: Active Users
Date Posted: 10 October 2003 at 3:58pm

Hey Guys,

I am trying to do a Active Users Script. I know of using the Application object to create it or using the global.asa page to do it.

What I am looking for is which one of the users is viewing what page, and if the user switches page it changes in the DB. Also if the user leaves the site, it removes the record from the database. I already have a session object setup using the Username. I can query to delete it. But how can I do that without using the Application Object.

Please ASSIST,

Thanks in Advance...

Shriniwasan Viswanathan




Replies:
Posted By: Gullanian
Date Posted: 10 October 2003 at 4:51pm

Bruce does it in a very cool way.

You dont need to use the application object or global.asa, simply have a new database table with a list of active users, the unique identifier being their IP address.  (This solution does not work very well however for 56k users whos IP's frequently change, but netherless its still pretty good).



Posted By: vshriniwasan
Date Posted: 10 October 2003 at 5:06pm

But the problem is Gullanian I don't want to be using the Global.asa or App object. I can also just do it with Just App object as sub routines, but the problem is I have to set a time out for each user, and even if they close the browser, the app session doesn't get killed for what ever minutes it is set for.

So do you have any other ideas on doing that...

Shrini



Posted By: God_Struth
Date Posted: 11 October 2003 at 7:15pm
Here's an article that may be of use to you: http://www.aspfree.com/articles/1392,1/articles.aspx

This is the only script I have seen that will do what your after, kind of..

-------------
"I'm only trying to help......"


Posted By: vshriniwasan
Date Posted: 12 October 2003 at 8:23pm

The problem is I have looked into that. They use Application object to do that job. I don't mind Application Object, but the problem is it has a timeout of 20 minutes. It doesn't matter even if I bring it down, I have no way to properly control it.

I have seen it in many sites people doing that but no one has any idea except the creator of the site.

Shrini



Posted By: dpyers
Date Posted: 14 October 2003 at 10:08pm

Do a Google for "maintaining session state with a database" or "maintaining session state in a web farm"



-------------

Lead me not into temptation... I know the short cut, follow me.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net