I need to count how many session I have opened at any moment.
What I had done is:
I defined a property in the App named intSessionsOpened as integer
In the Session.Open Event I placed a counter like this and a msgbox that if I start the app with the parameter ‘Admin’ it shows me how many sessions are opened:
App.intSessionsOpened = App.intSessionsOpened + 1
If Self.URLParameterCount > 0 Then
if Self.URLParameterName(0)=“Admin” then
In the Session.Close Event I substruct 1 session like this:
App.intSessionsOpened = App.intSessionsOpened - 1
The problem is that when I start the app in my browser and I close the browser, it takes more than 2 minutes till the counter reflects the changes, that must reflect no difference (one open and one close).
Is there any way to have the information at real time and not have to wait 2/3 minutes till I get the correct information of number of sessions opened ???