Print Page | Close Window

Active Users

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=5504
Printed Date: 03 April 2026 at 12:27am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Active Users
Posted By: wistex
Subject: Active Users
Date 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.



-------------
http://www.wistex.com" rel="nofollow - WisTex Solutions
http://www.caribbeanchoice.com/forums" rel="nofollow - CaribbeanChoice Forums



Replies:
Posted By: WebWiz-Bruce
Date 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.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: wistex
Date 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?



-------------
http://www.wistex.com" rel="nofollow - WisTex Solutions
http://www.caribbeanchoice.com/forums" rel="nofollow - CaribbeanChoice Forums


Posted By: b_bonnett
Date 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



-------------
Webmaster, http://www.planegallery.net/ - The Plane Gallery
Greetings From Christchurch


Posted By: wistex
Date 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.



-------------
http://www.wistex.com" rel="nofollow - WisTex Solutions
http://www.caribbeanchoice.com/forums" rel="nofollow - CaribbeanChoice Forums



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