Skip to content

Commit a218efc

Browse files
author
danh
committed
Fixed issue with daily stats - was incrementing counter on each page rather than on session termination.
git-svn-id: http://svn.resourcespace.org/svn/resourcespace@545 c08608d7-6e46-0410-86ca-f2a6f1370df5
1 parent 3c0372c commit a218efc

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

include/authenticate.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,14 @@
9090
redirect("pages/login.php");
9191
}
9292
}
93+
else
94+
{
95+
# Session end reached, but the user may still remain logged in.
96+
# This is a new 'session' for the purposes of statistics.
97+
daily_stat("User session",$userref);
98+
}
9399
}
94-
else
95-
{
96-
# Session end reached, but the user may still remain logged in.
97-
# This is a new 'session' for the purposes of statistics.
98-
daily_stat("User session",$userref);
99-
}
100-
100+
101101
}
102102
}
103103
else {$valid=false;}

0 commit comments

Comments
 (0)