Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Session Variable
Message
De
24/05/2006 18:24:04
 
 
À
24/05/2006 18:10:48
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Divers
Thread ID:
01124710
Message ID:
01124714
Vues:
12
>How I make to obtain the duration time to Session Variable . Thank'u

Here is what I use. In the Global.asax file, I have something like this in regards to this:
    Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs)
        LXFramework.oRequest = Request
        LXFramework.oResponse = Response
        LXFramework.oServer = Server
        LXFramework.BeginRequest()
    End Sub
    
    Sub Application_EndRequest(ByVal sender As Object, ByVal e As EventArgs)
        LXFramework.oResponse.Write(LXFramework.GetJavascriptMessage)
        LXFramework.EndRequest()
    End Sub
Those two events will handle this. In my case, for each request, I am calling BeginRequest, which is a method in my framework. This one time stamps the start time. When the request is completed, EndRequest() will be fired and will call the method EndRequest() in my framework which logs the duration.

I think with that you should have a great idea on how to implement this.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform