How do you determine (on the client, on the server) that the visitor leave
the site? http://www.alvas.net - Audio tools for C# and VB.Net developers 6 1332
"Alexander Vasilevsky" <ma**@alvas.net wrote in message
news:fn******** ***@behemoth.vo lia.net...
How do you determine (on the client, on the server) that the visitor leave
the site?
There is no reliable way to do this due to the disconnected architecture of
the web...
A client sends a request to a server.
The server processes the request and sends a response back to the client.
The server has no knowledge of what happens after that until / unless it
receives another request from the same client.
There are suggested options using the onunload / onbeforeunload JavaScript
events, but they cannot be guaranteed to work either...
My advice would be don't even bother...
--
Mark Rae
ASP.NET MVP http://www.markrae.net
AFAIK. it just allows to see if the destination of the current HTTP response
is still connected. For example if a user triggers a long running page and
closes its browser (or just goes on another page on the same site), my
understanding is that IsClientConnect ed will be false as the network link
between the server sending the response and the "destinatio n" of this
response is broken.
It just allows to see if the response that is currently sent has a receiver
on the other side of the network link
--
Patrice
"Juan T. Llibre" <no***********@ nowhere.coma écrit dans le message de
news: uj************* *@TK2MSFTNGP05. phx.gbl...
You could have some fun and use "IsClientConnec ted" :
http://msdn2.microsoft.com/en-us/lib...connected.aspx
There's one thing I've never been able to figure out about
IsClientConnect ed.
Isn't *being connected* a pre-requisite to it being used ?
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
"Peter Bromberg [C# MVP]" <pb*******@yaho o.NoSpamMaam.co mwrote in
message
news:4B******** *************** ***********@mic rosoft.com...
>I've tried things like calling to them ( "Vistor? Are you still there?") but that doesn't seem to work either.
Site: http://www.eggheadcafe.com UnBlog: http://petesbloggerama.blogspot.com MetaFinder: http://www.blogmetafinder.com
"Alexander Vasilevsky" wrote:
>>How do you determine (on the client, on the server) that the visitor leave the site?
http://www.alvas.net - Audio tools for C# and VB.Net developers
re:
!AFAIK. it just allows to see if the destination of the current HTTP response is still connected
I'm well aware of that.
I'll also bet that 99.9999% of all clients are still connected when IsClientConnect ed is used.
After all, IsClientConnect ed is checked only in response to a client request for a page.
Most page processing, btw, takes very little time.
A client would have to have very nimble fingers to close the browser
or move to another page before his latest request is fulfilled.
The intended purpose, of course, is to save server resources by not continuing
to process a request which will have no destination, but it seems to me that
IsClientConnect ed takes up a lot of server resources by itself.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
"Patrice" <http://www.chez.com/scribe/wrote in message news:Oi******** ******@TK2MSFTN GP03.phx.gbl...
AFAIK. it just allows to see if the destination of the current HTTP response is still connected. For example if a user
triggers a long running page and closes its browser (or just goes on another page on the same site), my understanding
is that IsClientConnect ed will be false as the network link between the server sending the response and the
"destinatio n" of this response is broken.
It just allows to see if the response that is currently sent has a receiver on the other side of the network link
--
Patrice
"Juan T. Llibre" <no***********@ nowhere.coma écrit dans le message de news: uj************* *@TK2MSFTNGP05. phx.gbl...
>You could have some fun and use "IsClientConnec ted" :
http://msdn2.microsoft.com/en-us/lib...connected.aspx
There's one thing I've never been able to figure out about IsClientConnect ed. Isn't *being connected* a pre-requisite to it being used ?
Juan T. Llibre, asp.net MVP asp.net faq : http://asp.net.do/faq/ foros de asp.net, en español : http://asp.net.do/foros/ ============== =============== ========= "Peter Bromberg [C# MVP]" <pb*******@yaho o.NoSpamMaam.co mwrote in message news:4B******* *************** ************@mi crosoft.com...
>>I've tried things like calling to them ( "Vistor? Are you still there?") but that doesn't seem to work either.
Site: http://www.eggheadcafe.com UnBlog: http://petesbloggerama.blogspot.com MetaFinder: http://www.blogmetafinder.com
"Alexander Vasilevsky" wrote:
How do you determine (on the client, on the server) that the visitor leave the site?
http://www.alvas.net - Audio tools for C# and VB.Net developers
Wanted to mention this to point out that this is unlikely to solve the OP
problem... IMO the OP best bet would be to explain what he wants to do i.e.
why he needs to track down leaving visitors.
For example in most cases, it's likely the current user count seen on some
site is just an approximation. If this is for cleanup, cleanup could likely
be done another way etc.. etc...
--
Patrice
"Juan T. Llibre" <no***********@ nowhere.coma écrit dans le message de
news: eH************* *@TK2MSFTNGP05. phx.gbl...
re:
!AFAIK. it just allows to see if the destination of the current HTTP
response is still connected
I'm well aware of that.
I'll also bet that 99.9999% of all clients are still connected when
IsClientConnect ed is used.
After all, IsClientConnect ed is checked only in response to a client
request for a page.
Most page processing, btw, takes very little time.
A client would have to have very nimble fingers to close the browser
or move to another page before his latest request is fulfilled.
The intended purpose, of course, is to save server resources by not
continuing
to process a request which will have no destination, but it seems to me
that
IsClientConnect ed takes up a lot of server resources by itself.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
"Patrice" <http://www.chez.com/scribe/wrote in message
news:Oi******** ******@TK2MSFTN GP03.phx.gbl...
>AFAIK. it just allows to see if the destination of the current HTTP response is still connected. For example if a user triggers a long running page and closes its browser (or just goes on another page on the same site), my understanding is that IsClientConnect ed will be false as the network link between the server sending the response and the "destination " of this response is broken.
It just allows to see if the response that is currently sent has a receiver on the other side of the network link
-- Patrice
"Juan T. Llibre" <no***********@ nowhere.coma écrit dans le message de news: uj************* *@TK2MSFTNGP05. phx.gbl...
>>You could have some fun and use "IsClientConnec ted" :
http://msdn2.microsoft.com/en-us/lib...connected.aspx
There's one thing I've never been able to figure out about IsClientConne cted. Isn't *being connected* a pre-requisite to it being used ?
Juan T. Llibre, asp.net MVP asp.net faq : http://asp.net.do/faq/ foros de asp.net, en español : http://asp.net.do/foros/ ============= =============== ========== "Peter Bromberg [C# MVP]" <pb*******@yaho o.NoSpamMaam.co mwrote in message news:4B****** *************** *************@m icrosoft.com... I've tried things like calling to them ( "Vistor? Are you still there?") but that doesn't seem to work either.
Site: http://www.eggheadcafe.com UnBlog: http://petesbloggerama.blogspot.com MetaFinder : http://www.blogmetafinder.com
"Alexander Vasilevsky" wrote:
How do you determine (on the client, on the server) that the visitor leave the site? > http://www.alvas.net - Audio tools for C# and VB.Net developers > > > This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Dave Hammond |
last post by:
You'd think this would be a basic part of the window object (and
perhaps it is and I'm just being dense), but I can't find any reference
in the IE window object documentation to a property which returns the
current window height/width. I can't check Mozilla, as the site is
currently unresponsive, but i don't recall there being any mention of
height/width properties in the Mozilla window object docs either.
Seems like if the object can...
|
by: Imre Palik |
last post by:
Hi,
I am trying to create a framework, that automatically generates a base
class for the visitor pattern:
template <typename param, typename ret = void>
struct visitor
{
typedef ret return_type;
virtual return_type visit(param *) = 0;
|
by: FluffyCat |
last post by:
New on November 28, 2005 for www.FluffyCat.com PHP 5 Design Pattern
Examples - the Visitor Pattern.
In the Visitor pattern, one class calls a function in another class
and passes an instance of itself. The called class has special
functions for each class that can call it.
With the visitor pattern, the calling class can have new operations
added without being changed itself.
|
by: Merlin |
last post by:
Probably there is no right or wrong answer to this but I thought to ask
to put my mind at rest. Ok lets say you have a object hierarchy (eg.
the Glyph in Lexi from GOF book) and you want to use the visitor
pattern. So we place an accept method in the the base class glyph and
procede to create the visitor hierarchy. The accept signature will look
like this
void Glyph::Accept(Visitor& v);
The Visitor hierarchy will have a Vistor base...
|
by: Siphiuel |
last post by:
Hi everyone.
When using visitor pattern, we have a nasty dependence on the types of
visitable objects that is coded way on top on the visitor hierarchy. i
mean, like this:
class AbstractVisitor
{
public:
virtual void visit(Object_type_1 *);
virtual void visit(Object_type_2 *)
| |
by: damezumari |
last post by:
I would like to know how many of the visitors to my site has js enabled
and how many has it turned off.
I haven't found a simple solution searching Google groups so I suggest
the following using php and mysql:
Create a table mc_jscount table in mysql with two fields nonjs (int)
and js (int). Create one record with nonjs and js set to zero.
Put this code at the top of your page:
|
by: JosAH |
last post by:
Greetings,
this week we let go of all that algebraic stuff and concentrate a bit more on
what object oriented programming is all about. Java claims to support OO, so
why not use it? In this week's article we're going to talk a bit about when
and why to apply certain patterns. We'll start with the Visitor pattern.
The pattern is also named 'double dispatch' which will become clear near the
end of this little article. Here's the...
|
by: weaknessforcats |
last post by:
Design Patterns: Visitor
Introduction
Polymorphism requires a class hierarchy where the interface to the hierarchy is in the base class. Virtual functions allow derived classes to override base class functions. Applications using polymorphism typically have functions with base class pointers or references as arguments. Then derived objects are created and used as arguments to these functions. Inside the function, only the base class methods...
|
by: aaragon |
last post by:
Hello everyone,
I've been trying to work with the visitor design pattern, and it works
fine except for the following.
Let's suppose that we have a fixed hierarchy of classes (many of them)
which I cannot modify. I decided to use the visitor design pattern
depending on the actual type of the classes because those classes
already support the loki visitor.
#include <Loki/Visitor.h>
|
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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: 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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |