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 11 9543
"Prabhat" <no*********@ho tmail.com> wrote in message
news:O1******** *****@TK2MSFTNG P15.phx.gbl... 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."
"McKirahan" <Ne**@McKirahan .com> wrote in message
news:Jb******** ************@co mcast.com... 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
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
Kristofer Gafvert [MVP] wrote on 07 okt 2005 in
microsoft.publi c.inetserver.as p.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)
"Kristofer Gafvert [MVP]" <kg******@NEWSi lopia.com> wrote in message
news:xn******** ********@news.m icrosoft.com... 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
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.publ ic.inetserver.a sp.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.
Kristofer Gafvert [MVP] wrote on 07 okt 2005 in
microsoft.publi c.inetserver.as p.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)
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
"Transmissi on 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.publ ic.inetserver.a sp.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.
Kristofer Gafvert [MVP] wrote on 07 okt 2005 in
microsoft.publi c.inetserver.as p.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) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Frances Del Rio |
last post by:
I need to put content from web presentation on CD... interface contains
external links (absolute urls..) is there a way to detect if user is
connected to the internet (so if they're not I can pop an alert saying
'sorry, you're not connected...' etc..) this is for CD's that will be
widely distributed/sold.. so needs to be 'bulletproof'... (that it
doesn't by error detect user is not connected if they are and
vice-versa, etc..)
thank...
|
by: jsale |
last post by:
I'm currently using ASP.NET with VS2003 and SQL Server 2003. The ASP.NET app
i have made is running on IIS v6 and consists of a number of pages that allow
the user to read information from the database into classes, which are used
throughout the application. I have made class collections which, upon reading
from the DB, create an instance of the class and store the DB values in
there temporarily. My problem is that if user1 looks at...
|
by: Robert Scheer |
last post by:
Hi.
My site needs to know if the user is connected before executing some
queries on my database. Actually, I have a page loaded by an Iframe
that runs every 30 seconds and updates a field on my database to tells
me the user is connected. If this field is not updated for more than
one minute I consider the user disconnected.
The problem is, if that page does not load for any anormal reason (an
IIS error like Page Could not be Loaded,...
|
by: Martin Ho |
last post by:
My application (before is actually fully loads) should check if user
is connected to internet.
Is there any way to check this with certainty?
Thanks a lot.
Martin
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
|
by: Antonios Christofides |
last post by:
Hi, I've prepared a test case about this, which I include below. I
have tables "a" and "b"; "b" has a foreign key to "a", on delete
cascade. In addition, there is a "before delete on b" trigger, which
all that does is show the current_user. If a row is deleted from "a",
and this triggers a delete from "b", which in turn activates the
show_current_user trigger, the triggered function selects
"current_user", and the result is the user who...
| |
by: WT |
last post by:
Hi,
Working on MS CRM 3, I have created an aspx page using vs2005 and .NET 2.
I am faced with a problem concerning the identity of the running user.
More details:
The CRM application which creates the iFrame is on the same server as the
called aspx page.
CRM is running .NET 1.1, my page .NET 2
They run under IIS6 in différent web sites, different application pools.
|
by: teddysnips |
last post by:
One of my clients has asked me to make a change to one of their Access
applications.
The application is a Front End/Back End standard app. I didn't
develop it, but looking at it tells me that it was done entirely using
the Wizards. There is no log-in procedure.
They want to amend it so that only one person can be logged in at any
one time. So, if Joe Bloggs tries to open the application, and Fred
Jones has already connected, Joe...
|
by: MADS |
last post by:
Hi everybody,
I've five instances of SQL Server 2000 with the SAME database with a
DIFFERENT owner in each server. I, as the administrator, have a lot of
queries that I have to execute in some or all servers. The problem is
that I have to connect to all servers with MY user, not each of the db
owners...
So I have queries this way:
|
by: kalps |
last post by:
i am in system login and connected with a user u1....How to disconnect from the connected user u1?but i should be connected with system login
is any command for this?
for ex.. i have given the following
entered in system login..after that i used the command connect u1/u1@hoststring
now i want to come out from user u1...
i am not asking about closing the application...
|
by: ADezii |
last post by:
For this Tip, we will show you an extremely handy, multi-user, feature of Jet that allows you to manage Users more effectively. You can create a special, provider-specific Recordset in ADO that supplies information about the current Users in the Database. This is accomplished by using the OpenSchema() Method of the Connection Object, which will fill a recordset with varied sets of different Database Schema information. The output of this...
|
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 usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |