Current User: Guest Login
Please consider registering

Lost Your Password?

Search Forums:


Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

How is the Value $TotalVisits calculated in the code?

Reply to Post Add a New Topic

8:54 am
August 9, 2011



Hi all,

I am looking for the logic behind the Total visits variable, how is it calculated,

can someone help with this….

Thanks in advance


10:00 am
August 9, 2011



posts 1125

Hi Krishna,

I will not go into the details of the code here. $TotalVisits  is used to calculate the number of visits.

In AWStats terminology, a visit starts when a visitor comes to the site and opens a page and it ends at the start of a period of one hour during which this visitor does not open any other page.

Example 1: a visitor opens page A at 9:00, goes to page B at 9:05, then to page C at 9:45, to page D at 10:15 and then leaves the site. This is 1 visit that started at 9:00 and ended at 10:15.

Example 2: a visitor opens page A at 9:00, goes to page B at 9:30, then to page C at 10:35, then to page D at 10:45 and then leaves the site. Here you have 2 visits, the first one between 9:00 and 9:30 and the second one between 10:35 and 10:45.

12:14 pm
August 29, 2011



Thanks alot sir:)

Reply to Post

Reply to Topic:
How is the Value $TotalVisits calculated in the code?

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
4 + 7

About the Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
10 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 639
Posts: 2710


There are 257 Members
There have been 304 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

cssfsu – 55
deepakgupta – 34
albert_newton – 30
cosminpana – 20
DTNMike – 19
ahtshun83 – 17

Recent New Members: raju, todd2taylor, sbdcunha, mansigill1987, ThomasDuh, ThomasKic

Administrators: Jean-Luc (1125 Posts)

Moderators: Jean-Luc (1125 Posts)