Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > If User connected to IIS

Reply
Thread Tools

If User connected to IIS

 
 
Prabhat
Guest
Posts: n/a
 
      10-07-2005
Hi All,

Is there a way that I can know if any user connected to any of my website
(or any specific website) in IIS 5? I wanted to know this before I restart
the Service.

Thanks
Prabhat


 
Reply With Quote
 
 
 
 
McKirahan
Guest
Posts: n/a
 
      10-07-2005
"Prabhat" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi All,
>
> Is there a way that I can know if any user connected to any of my website
> (or any specific website) in IIS 5? I wanted to know this before I restart
> the Service.
>
> Thanks
> Prabhat


Google is your friend.

Counting Active Users
http://www.asp101.com/resources/active_users.asp
"There are 28 users currently on this site!"

GLOBAL.ASA
http://www.aspwebpro.com/tutorials/asp/globalasa.asp
"For example, we use the global.asa file on this website
to display the number of Active Users on our site."


 
Reply With Quote
 
 
 
 
Prabhat
Guest
Posts: n/a
 
      10-07-2005
"McKirahan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Google is your friend.
>
> Counting Active Users
> http://www.asp101.com/resources/active_users.asp
> "There are 28 users currently on this site!"
>
> GLOBAL.ASA
> http://www.aspwebpro.com/tutorials/asp/globalasa.asp
> "For example, we use the global.asa file on this website
> to display the number of Active Users on our site."
>

Hi McKirahan,

Thanks for the reply, But I know that we can do that in Global.asa using
Application variable. I am looking for is there some thing IIS built in that
will show the active users / activity ?

(Suppose there is one website that has not yet implenting Active user count
logic in global.asa and the Web Admin want to restart the Service after the
mid night and wanted to know if there are any active user for the Site?)

Thanks
Prabhat


 
Reply With Quote
 
Kristofer Gafvert [MVP]
Guest
Posts: n/a
 
      10-07-2005
Hi,

Yes, you can use performance counters. Check out the Web Service
performance object. "Current connections" will show you if there are any
connections to the webserver.


--
Regards,
Kristofer Gafvert (IIS MVP)
http://www.gafvert.info/iis/ - IIS Related Info


Prabhat wrote:

>Hi All,
>
>Is there a way that I can know if any user connected to any of my website
>(or any specific website) in IIS 5? I wanted to know this before I restart
>the Service.
>
>Thanks
>Prabhat

 
Reply With Quote
 
Evertjan.
Guest
Posts: n/a
 
      10-07-2005
Kristofer Gafvert [MVP] wrote on 07 okt 2005 in
microsoft.public.inetserver.asp.general:

> Yes, you can use performance counters. Check out the Web Service
> performance object. "Current connections" will show you if there are any
> connections to the webserver.
>


All very nice, but a "connection" exists only during(!!) download.

If you mean looking if there are still sessions-not-ended
[session.end-ed, session.abandon-ed or timed out], yes,
but those users could have switched off their pc's 19 minutes ago.

The IIS "Current connections" is a misnomer.


--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

 
Reply With Quote
 
Prabhat
Guest
Posts: n/a
 
      10-07-2005
"Kristofer Gafvert [MVP]" <(E-Mail Removed)> wrote in message
news(E-Mail Removed)...
> Hi,
>
> Yes, you can use performance counters. Check out the Web Service
> performance object. "Current connections" will show you if there are any
> connections to the webserver.
>
>
> --
> Regards,
> Kristofer Gafvert (IIS MVP)
> http://www.gafvert.info/iis/ - IIS Related Info
>

Hi Kristofer Gafvert,

Thanks for that hint. as Evertjan is telling I think "Current anonymous
users" should work.

Thanks
Prabhat


 
Reply With Quote
 
Kristofer Gafvert [MVP]
Guest
Posts: n/a
 
      10-07-2005
I don't think we will ever find a failsafe way to find out if there is
someone browsing the website or not since the communication is one-way
(the client never tells the server it is still online using the website
until it makes a new request).

Someone could have switched off their PC, but they could also be reading a
very long article. Both situations may indicate a connection, or not a
connection.

So when restarting the service there is always a risk that someone may be
affected. The only way to avoid this is to have multiple servers in a
cluster (and a web application that is coded for this situation).


--
Regards,
Kristofer Gafvert (IIS MVP)
http://www.gafvert.info/iis/ - IIS Related Info


Evertjan. wrote:

>Kristofer Gafvert [MVP] wrote on 07 okt 2005 in
>microsoft.public.inetserver.asp.general:
>
>>Yes, you can use performance counters. Check out the Web Service
>>performance object. "Current connections" will show you if there are any
>>connections to the webserver.
>>

>
>All very nice, but a "connection" exists only during(!!) download.
>
>If you mean looking if there are still sessions-not-ended
>[session.end-ed, session.abandon-ed or timed out], yes,
>but those users could have switched off their pc's 19 minutes ago.
>
>The IIS "Current connections" is a misnomer.

 
Reply With Quote
 
Evertjan.
Guest
Posts: n/a
 
      10-07-2005
Kristofer Gafvert [MVP] wrote on 07 okt 2005 in
microsoft.public.inetserver.asp.general:

> I don't think we will ever find a failsafe way to find out if there is
> someone browsing the website or not since the communication is one-way
> (the client never tells the server it is still online using the
> website until it makes a new request).
>
> Someone could have switched off their PC, but they could also be
> reading a very long article. Both situations may indicate a
> connection, or not a connection.


You are making your own definition of "connection".

> So when restarting the service there is always a risk that someone may
> be affected.


I fully agree.

> The only way to avoid this is to have multiple servers in
> a cluster (and a web application that is coded for this situation).


As we are talking anonimous users,
I suppose it most often is not worth the trouble.
However that depends on the site application.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

 
Reply With Quote
 
Kristofer Gafvert [MVP]
Guest
Posts: n/a
 
      10-07-2005
With HTTP Keep-Alives it is a connection until it times out (or closes for
another reason). Hence someone reading a page (but not actively
downloading anything) could be "connected".

So i am not making up my own definition of "connection". The client has an
inactive connection to the webserver if http keep-alives is enabled and
used, and the "Current Connections" performance counter object shows this.
If you do a netstat -an on the webserver you will see that there is an
established connection between the webserver and client, which also
indicates that there is a connection.

HTTP keep-alive is explained in the HTTP RFC (2616)[1], chapter 8. You may
also want to read about it on the Microsoft website[2].

HTTP keep-alive is enabled by default on IIS 6.0 and probably also IIS 5.0
(i didn't have anywhere to check right now).

For data to transfer between two hosts, first a connection must be
established (opened). Once a connection has been established, the data can
be transfered. When the data is sent, the connection is closed. With HTTP
Keep-alive, the connection is not closed immediately.

So a connection does not exist _only_ during a download...

Read "Protocol operation in detail":
http://en.wikipedia.org/wiki/Transmi...ntrol_Protocol

"Transmission Control Protocol"
http://www.scit.wlv.ac.uk/~jphb/comms/tcp.html


[1] http://www.w3.org/Protocols/rfc2616/...sec8.html#sec8
[2]
http://www.microsoft.com/technet/pro...418dbfe42.mspx


Bye.


--
Regards,
Kristofer Gafvert (IIS MVP)
http://www.gafvert.info/iis/ - IIS Related Info


Evertjan. wrote:

>Kristofer Gafvert [MVP] wrote on 07 okt 2005 in
>microsoft.public.inetserver.asp.general:
>
>>I don't think we will ever find a failsafe way to find out if there is
>>someone browsing the website or not since the communication is one-way
>>(the client never tells the server it is still online using the
>>website until it makes a new request).
>>
>>Someone could have switched off their PC, but they could also be
>>reading a very long article. Both situations may indicate a
>>connection, or not a connection.

>
>You are making your own definition of "connection".
>
>>So when restarting the service there is always a risk that someone may
>>be affected.

>
>I fully agree.
>
>>The only way to avoid this is to have multiple servers in
>>a cluster (and a web application that is coded for this situation).

>
>As we are talking anonimous users,
>I suppose it most often is not worth the trouble.
>However that depends on the site application.

 
Reply With Quote
 
Evertjan.
Guest
Posts: n/a
 
      10-07-2005
Kristofer Gafvert [MVP] wrote on 07 okt 2005 in
microsoft.public.inetserver.asp.general:

> With HTTP Keep-Alives it is a connection until it times out (or closes
> for another reason). Hence someone reading a page (but not actively
> downloading anything) could be "connected".
>
> So i am not making up my own definition of "connection". The client
> has an inactive connection to the webserver if http keep-alives is
> enabled and used, and the "Current Connections" performance counter
> object shows this. If you do a netstat -an on the webserver you will
> see that there is an established connection between the webserver and
> client, which also indicates that there is a connection.


"if http keep-alives is enabled and used"

Is this done by my IE, or the majority of anonimous(!!!) users??

I don't think so, but if so, how can I see that with ASP?


--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connection between a lan-connected pc and a wireless connected =?Utf-8?B?Q2lhY2NpaG9tZQ==?= Wireless Networking 1 08-17-2006 11:00 AM
Wireless connected but don't have LAN connected Thaqalainnaqvi@gmail.com Computer Support 6 06-11-2006 09:06 PM
connected but not connected =?Utf-8?B?R2xlbm4=?= Wireless Networking 1 12-04-2005 12:35 AM
problem: connected, but not connected to a wireless network Andrew Smith Wireless Networking 0 08-20-2004 07:51 PM
Connected Icon Showing, But In Reality Not Connected. Thoughts On ? Robert11 Computer Support 2 03-02-2004 04:02 PM



Advertisments