Session("page_start") bijhouden, kun je in AiAi logging terugvinden, interessant bij timeouts

svn path=/Website/trunk/; revision=35235
This commit is contained in:
Jos Groot Lipman
2017-09-07 08:54:43 +00:00
parent 492ed3c417
commit f59c3ba529
2 changed files with 9 additions and 1 deletions

View File

@@ -371,7 +371,13 @@ function LogErrorToFile()
Session.Contents.Remove("last_caller");
if (Request.ServerVariables("HTTP_REFERER").Count)
__DoLog("Referer: " + Request.ServerVariables("HTTP_REFERER"));
if (Session("page_start"))
{
var now = new Date();
var start = new Date(Session("page_start"));
var duration = Math.round((now.getTime() - start.getTime()) / 100) / 10;
__SafeDoLog("Page started at " + toISODateTimeString(start) + " which is " + duration + " seconds ago");
}
__SafeDoLog(ShowSourcecode(-8, +4));
if (Request.QueryString.Count>0) // Hele URL is al wel gelogd maar dit is leesbaarder

View File

@@ -22,6 +22,8 @@
Functies gaan naar shared.inc
*/
Session("page_start") = (new Date()).getTime(); // kun je in AiAi logging terugvinden, interessant bij timeouts
// Diverse andere variabelen zijn afhankelijk van rooturl en vooral customerId. H<><48>l vroeg bepalen dus!
var rooturl;
var customerId;