| Author |
Topic Search Topic Options
|
vshriniwasan
Groupie
Joined: 17 December 2001
Location: United States
Status: Offline
Points: 63
|
Post Options
Thanks(0)
Quote Reply
Topic: Active Users 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
|
 |
Gullanian
Senior Member
Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
|
Post Options
Thanks(0)
Quote Reply
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).
|
 |
vshriniwasan
Groupie
Joined: 17 December 2001
Location: United States
Status: Offline
Points: 63
|
Post Options
Thanks(0)
Quote Reply
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
|
 |
God_Struth
Senior Member
Joined: 07 August 2003
Location: United Kingdom
Status: Offline
Points: 218
|
Post Options
Thanks(0)
Quote Reply
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......"
|
 |
vshriniwasan
Groupie
Joined: 17 December 2001
Location: United States
Status: Offline
Points: 63
|
Post Options
Thanks(0)
Quote Reply
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
|
 |
dpyers
Senior Member
Joined: 12 May 2003
Status: Offline
Points: 3937
|
Post Options
Thanks(0)
Quote Reply
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.
|
 |