Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Active Users
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Active Users

 Post Reply Post Reply
Author
vshriniwasan View Drop Down
Groupie
Groupie
Avatar

Joined: 17 December 2001
Location: United States
Status: Offline
Points: 63
Post Options Post Options   Thanks (0) Thanks(0)   Quote vshriniwasan Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Gullanian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gullanian Quote  Post ReplyReply Direct Link To This Post 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).

Back to Top
vshriniwasan View Drop Down
Groupie
Groupie
Avatar

Joined: 17 December 2001
Location: United States
Status: Offline
Points: 63
Post Options Post Options   Thanks (0) Thanks(0)   Quote vshriniwasan Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
God_Struth View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 August 2003
Location: United Kingdom
Status: Offline
Points: 218
Post Options Post Options   Thanks (0) Thanks(0)   Quote God_Struth Quote  Post ReplyReply Direct Link To This Post 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......"
Back to Top
vshriniwasan View Drop Down
Groupie
Groupie
Avatar

Joined: 17 December 2001
Location: United States
Status: Offline
Points: 63
Post Options Post Options   Thanks (0) Thanks(0)   Quote vshriniwasan Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.