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
wistex View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 30 August 2003
Location: United States
Status: Offline
Points: 877
Post Options Post Options   Thanks (0) Thanks(0)   Quote wistex Quote  Post ReplyReply Direct Link To This Post Topic: Active Users
    Posted: 03 September 2003 at 11:35pm

I have a couple of questions about how it calculates Active Users.

  1. How long does it take until a user is considered inactive?  5 minutes?  10 minutes?  1 minutes?  30 minutes?
  2. How do you change that value?

Thanks.

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 04 September 2003 at 2:22am
It's 10 minutes and I can't remeber where you change the value, try the active_users_inc.asp file.
Back to Top
wistex View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 30 August 2003
Location: United States
Status: Offline
Points: 877
Post Options Post Options   Thanks (0) Thanks(0)   Quote wistex Quote  Post ReplyReply Direct Link To This Post Posted: 06 September 2003 at 7:59pm

I think I found the code in active_users_inc.asp but I am not sure if this is it:

 'Clean up old users
 'Initilse sql statement
 If strDatabaseType = "SQLServer" Then
  strSQL = "EXECUTE " & strDbProc & "DeleteActiveUser"
 Else
  strSQL = "DELETE FROM " & strDbTable & "ActiveUser WHERE " & strDbTable & "ActiveUser.Active < Now() - 0.0070;"
 End If

I assume that I need to modify the Now() - 0.0070 part, but I am not familiar what 0.0070 actually means.  It looks like it is measuring time in clock ticks or something like that, not minutes.  Of course, I am not an asp programmer, so I'm just guessing what 0.0070 means.

Am I looking in the right place?  If so, how do I convert minutes to whatever format that is expresses in?

Back to Top
b_bonnett View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Location: New Zealand
Status: Offline
Points: 275
Post Options Post Options   Thanks (0) Thanks(0)   Quote b_bonnett Quote  Post ReplyReply Direct Link To This Post Posted: 07 September 2003 at 8:57pm

You are looking in exactly the right place. The Now() time is obviously stored in terms of minutes in a day, as 0.0070 * (24 * 60) gives the 10 minutes you are looking for. So if you want to change it to 5 minutes, change the 0.0070 to 0.0035, for 20 minutes, change it to 0.0140, and so on.

Edit: Note that changing this will only work if you are using the Access version, to change the time for the SQL version you would need to alter the stored procedure DeleteActiveUser.

Blair



Edited by b_bonnett
Webmaster, The Plane Gallery
Greetings From Christchurch
Back to Top
wistex View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 30 August 2003
Location: United States
Status: Offline
Points: 877
Post Options Post Options   Thanks (0) Thanks(0)   Quote wistex Quote  Post ReplyReply Direct Link To This Post Posted: 07 September 2003 at 9:23pm

Originally posted by b_bonnett b_bonnett wrote:

Edit: Note that changing this will only work if you are using the Access version, to change the time for the SQL version you would need to alter the stored procedure DeleteActiveUser.

Thanks for mentioning that part.  I am using the SQL version.  Now I guess I need to start looking in DeleteActiveUser.

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.