Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Session Variable
Message
From
24/05/2006 18:24:04
 
 
To
24/05/2006 18:10:48
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01124710
Message ID:
01124714
Views:
17
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform