473,549 Members | 2,366 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Get the number of sessions going on now.

Hiya!
How would i get this number? thanks!
Jul 19 '05 #1
19 7862
www.perfhound.com

"Jeff Clark" <JeffC@NO_SPAMr eturnventures.c om> wrote in message
news:uR******** ******@TK2MSFTN GP10.phx.gbl...
Hiya!
How would i get this number? thanks!

Jul 19 '05 #2
Sub Session_OnStart ()
Application.Loc k
Application("Se ssionCount") = Application("Se ssionCount") + 1
Application.Unl ock
End Sub

Sub Session_OnEnd()
Application.Loc k
Application("Se ssionCount") = Application("Se ssionCount") - 1
Application.Unl ock
End Sub

In your global.asa.

Ray at work
"Jeff Clark" <JeffC@NO_SPAMr eturnventures.c om> wrote in message
news:uR******** ******@TK2MSFTN GP10.phx.gbl...
Hiya!
How would i get this number? thanks!

Jul 19 '05 #3
i love you Ray.

"Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
news:Oz******** ******@TK2MSFTN GP11.phx.gbl...
Sub Session_OnStart ()
Application.Loc k
Application("Se ssionCount") = Application("Se ssionCount") + 1
Application.Unl ock
End Sub

Sub Session_OnEnd()
Application.Loc k
Application("Se ssionCount") = Application("Se ssionCount") - 1
Application.Unl ock
End Sub

In your global.asa.

Ray at work
"Jeff Clark" <JeffC@NO_SPAMr eturnventures.c om> wrote in message
news:uR******** ******@TK2MSFTN GP10.phx.gbl...
Hiya!
How would i get this number? thanks!


Jul 19 '05 #4
I love you too Jeff. :]

Ray at work

"Jeff Clark" <JeffC@NO_SPAMr eturnventures.c om> wrote in message
news:uL******** ******@TK2MSFTN GP09.phx.gbl...
i love you Ray.

"Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
news:Oz******** ******@TK2MSFTN GP11.phx.gbl...
Sub Session_OnStart ()
Application.Loc k
Application("Se ssionCount") = Application("Se ssionCount") + 1
Application.Unl ock
End Sub

Sub Session_OnEnd()
Application.Loc k
Application("Se ssionCount") = Application("Se ssionCount") - 1
Application.Unl ock
End Sub

In your global.asa.

Ray at work
"Jeff Clark" <JeffC@NO_SPAMr eturnventures.c om> wrote in message
news:uR******** ******@TK2MSFTN GP10.phx.gbl...
Hiya!
How would i get this number? thanks!



Jul 19 '05 #5
Careful though, the session_onEnd will not always fire when you expect, if
at all.
http://www.aspfaq.com/2078
"Jeff Clark" <JeffC@NO_SPAMr eturnventures.c om> wrote in message
news:uL******** ******@TK2MSFTN GP09.phx.gbl...
i love you Ray.

"Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
news:Oz******** ******@TK2MSFTN GP11.phx.gbl...
Sub Session_OnStart ()
Application.Loc k
Application("Se ssionCount") = Application("Se ssionCount") + 1
Application.Unl ock
End Sub

Sub Session_OnEnd()
Application.Loc k
Application("Se ssionCount") = Application("Se ssionCount") - 1
Application.Unl ock
End Sub

In your global.asa.

Ray at work
"Jeff Clark" <JeffC@NO_SPAMr eturnventures.c om> wrote in message
news:uR******** ******@TK2MSFTN GP10.phx.gbl...
Hiya!
How would i get this number? thanks!



Jul 19 '05 #6
> I love you too Jeff. :]

Stop guys.. I'm getting teary eyed.
Jul 19 '05 #7
Ray, take my clothes out of the dryer when you get home please

"Randy Rahbar" <rvrahbarAThotm ail.com> wrote in message
news:OC******** ******@TK2MSFTN GP09.phx.gbl...
I love you too Jeff. :]


Stop guys.. I'm getting teary eyed.

Jul 19 '05 #8
Evertjan. wrote on 13 nov 2003 in
microsoft.publi c.inetserver.as p.general:
Ray at <%=sLocation% > wrote on 13 nov 2003 in
microsoft.publi c.inetserver.as p.general:
Sub Session_OnStart ()
Application.Loc k
Application("Se ssionCount") = Application("Se ssionCount") + 1
Application.Unl ock
End Sub

Sub Session_OnEnd()
Application.Loc k
Application("Se ssionCount") = Application("Se ssionCount") - 1
Application.Unl ock
End Sub

In your global.asa.


You will need this too, I think:

Sub Application_OnS tart
Application("Ac tive") = 0
End Sub

I mean:

Sub Application_OnS tart
Application("Se ssionCount") = 0
End Sub


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #9
Oh, did you leave them in there again? You know that I hate it when you do
that! Now I'm going to have to iron them all again. >:|

Ray at work

"Jeff Clark" <JeffC@NO_SPAMr eturnventures.c om> wrote in message
news:uY******** *****@TK2MSFTNG P11.phx.gbl...
Ray, take my clothes out of the dryer when you get home please

"Randy Rahbar" <rvrahbarAThotm ail.com> wrote in message
news:OC******** ******@TK2MSFTN GP09.phx.gbl...
I love you too Jeff. :]


Stop guys.. I'm getting teary eyed.


Jul 19 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
12025
by: jing_li | last post by:
Hi, you all, I am a newbee for php and I need your help. One of my coworker and I are both developing a webpage for our project using php. We have a copy of the same files in different location on the server (in our own accounts on the same machine). When I am testing both versions of our program using the same browser (IE on Windows or...
2
1789
by: Lenn | last post by:
Hello, This requirement might seem strange to someone out there, but here it's We need to make sure only certain number of users can be logged in the site at the same time. Is there any way to do that in ASP.NET, in web config file or otherwise. Thanks in advance for your help.
4
3335
by: Ollie | last post by:
Is there anyway to montior the number of user sessions from an asp.net app\page? The reason I ask is because I would like to throttle the number of concurrent sessions to a website, i.e. limit the number of concurrent user sessions lets say to 10,000 and if a user session exceeeds this amount they would be redirected to a 'Server is to...
5
3533
by: TheOne | last post by:
Hi I am trying to display on a web page number of visitors on the site. I am doing this by increasing +1 in global.asax on Session_start and subtracting -1 on Session_end. I am storing value in the Application("numberOfVisitors"). It works fine but when I compare values to number of ASP Applications "Sessions Active" under Windows 2003...
15
10965
by: dee | last post by:
Hi, What is the maximum number of minutes for Session timeout that I can specify in web.config? Thanks. Dee
2
2325
by: tbone | last post by:
In trying to improve the throughput of a classic ASP app I wrote last year, I added monitoring to the application and session start and end methods. For one, I'm counting the total number of sessions and the high water mark. My monitoring has revealed a few interesting things. 1. The ASP application is being shutdown and restarted almost...
13
35919
Frinavale
by: Frinavale | last post by:
One of the most fundamental topics in web design is understanding how to pass information collected on one web page to another web page. There are many different ways you could do this: Cookies, Database... However, I'm going to cover how to use Sessions. Sessions are used to store information in order to use it during later page requests or...
3
28207
Atli
by: Atli | last post by:
Introduction: Sessions are one of the simplest and more powerful tools in a web developers arsenal. This tool is invaluable in dynamic web page development and it is one of those things every developer needs to know how to use. This article explains the basics of PHP Sessions. Assumptions: Basic PHP knowledge is required (variables, arrays...
2
19290
by: mktselvan | last post by:
Hi, Existing running oracle application 11i (11.5.8) Database version is 8.1.7.4 There is any command / way to know the number of concurrent users for this application. select SESSIONS_MAX, SESSIONS_WARNING,
0
7546
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7740
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7830
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6071
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5387
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5111
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3517
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3496
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1082
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.