473,466 Members | 1,382 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Session counter

Hi
I have web site developed and now wanna to check how many people is
connected
In all MS articles written to use
Application_start
Session_start
Session_end
functions in Global.asa
BUT!!!!!!!!!!!!!!!!!!!!!
after many tries I see that Session_end almost never fires
after checking many articles I see that MS wrong in its help manuals and
documentation
even in MCSD book .Net web development where they brings that sample!

So who can help me plaese see how can I see how many users connected to my
web

Thanks
Nov 19 '05 #1
6 1277
Armen Kirakosyan wrote:
Hi
I have web site developed and now wanna to check how many people is
connected
In all MS articles written to use
Application_start
Session_start
Session_end
functions in Global.asa
BUT!!!!!!!!!!!!!!!!!!!!!
after many tries I see that Session_end almost never fires
after checking many articles I see that MS wrong in its help manuals and
documentation
even in MCSD book .Net web development where they brings that sample!

So who can help me plaese see how can I see how many users connected to my
web

Thanks


When do you expect Session_End to fire? It does NOT fire
when the user "leaves the site" or closes the browser.
It does fire when the user has not done anything on the site
for (default) 20 minutes.
I did see a message somewhere that you need to store something
in the session (have a "real" session) or else it will not fire.

--
Hans Kesting
Nov 19 '05 #2
Hi
I need to see all active sessions
if someone closes browser in any way , closing, leaving etc.
I wanna know that
Session_start tells me if some one comes in
but I cannot determine if someone leaved it!
Session_end fires after 20 minutes
not good for me :-(

"Hans Kesting" <ne***********@spamgourmet.com> wrote in message
news:e6**************@TK2MSFTNGP12.phx.gbl...
Armen Kirakosyan wrote:
Hi
I have web site developed and now wanna to check how many people is
connected
In all MS articles written to use
Application_start
Session_start
Session_end
functions in Global.asa
BUT!!!!!!!!!!!!!!!!!!!!!
after many tries I see that Session_end almost never fires
after checking many articles I see that MS wrong in its help manuals and
documentation
even in MCSD book .Net web development where they brings that sample!

So who can help me plaese see how can I see how many users connected to
my web

Thanks


When do you expect Session_End to fire? It does NOT fire
when the user "leaves the site" or closes the browser.
It does fire when the user has not done anything on the site
for (default) 20 minutes.
I did see a message somewhere that you need to store something
in the session (have a "real" session) or else it will not fire.

--
Hans Kesting

Nov 19 '05 #3
HTTP is essentially stateless. Possible options would be :
- when the browser closes call some server side code
- keep track of last request, you can then assume whatever delay you want
for inactive users.

Unless you need something more specific I would starrt by checking
performance counters...

Patrice
--

"Armen Kirakosyan" <ar***@kirakosyan.com> a écrit dans le message de
news:eK***************@TK2MSFTNGP09.phx.gbl...
Hi
I need to see all active sessions
if someone closes browser in any way , closing, leaving etc.
I wanna know that
Session_start tells me if some one comes in
but I cannot determine if someone leaved it!
Session_end fires after 20 minutes
not good for me :-(

"Hans Kesting" <ne***********@spamgourmet.com> wrote in message
news:e6**************@TK2MSFTNGP12.phx.gbl...
Armen Kirakosyan wrote:
Hi
I have web site developed and now wanna to check how many people is
connected
In all MS articles written to use
Application_start
Session_start
Session_end
functions in Global.asa
BUT!!!!!!!!!!!!!!!!!!!!!
after many tries I see that Session_end almost never fires
after checking many articles I see that MS wrong in its help manuals and documentation
even in MCSD book .Net web development where they brings that sample!

So who can help me plaese see how can I see how many users connected to
my web

Thanks


When do you expect Session_End to fire? It does NOT fire
when the user "leaves the site" or closes the browser.
It does fire when the user has not done anything on the site
for (default) 20 minutes.
I did see a message somewhere that you need to store something
in the session (have a "real" session) or else it will not fire.

--
Hans Kesting


Nov 19 '05 #4
Very interesting
I thoght that it is common problem of webmasters and develpers to check how
many users online!

There should be nice solvation of the problem.
"Patrice" <no****@nowhere.com> wrote in message
news:et**************@TK2MSFTNGP10.phx.gbl...
HTTP is essentially stateless. Possible options would be :
- when the browser closes call some server side code
- keep track of last request, you can then assume whatever delay you want
for inactive users.

Unless you need something more specific I would starrt by checking
performance counters...

Patrice
--

"Armen Kirakosyan" <ar***@kirakosyan.com> a écrit dans le message de
news:eK***************@TK2MSFTNGP09.phx.gbl...
Hi
I need to see all active sessions
if someone closes browser in any way , closing, leaving etc.
I wanna know that
Session_start tells me if some one comes in
but I cannot determine if someone leaved it!
Session_end fires after 20 minutes
not good for me :-(

"Hans Kesting" <ne***********@spamgourmet.com> wrote in message
news:e6**************@TK2MSFTNGP12.phx.gbl...
> Armen Kirakosyan wrote:
>> Hi
>> I have web site developed and now wanna to check how many people is
>> connected
>> In all MS articles written to use
>> Application_start
>> Session_start
>> Session_end
>> functions in Global.asa
>> BUT!!!!!!!!!!!!!!!!!!!!!
>> after many tries I see that Session_end almost never fires
>> after checking many articles I see that MS wrong in its help manuals and >> documentation
>> even in MCSD book .Net web development where they brings that sample!
>>
>> So who can help me plaese see how can I see how many users connected
>> to
>> my web
>>
>> Thanks
>
> When do you expect Session_End to fire? It does NOT fire
> when the user "leaves the site" or closes the browser.
> It does fire when the user has not done anything on the site
> for (default) 20 minutes.
> I did see a message somewhere that you need to store something
> in the session (have a "real" session) or else it will not fire.
>
> --
> Hans Kesting



Nov 19 '05 #5
Keep in mind anyway that there's nothing allowing to know the guy just
pointed your browser to your site and then goes to lunch so you'll always
have to take these numbers as an estimation, roughly correct but an
estimation.

You'll see possible options at :
http://www.aspfaq.com/show.asp?id=2491

Patrice
--

"Armen Kirakosyan" <ar***@kirakosyan.com> a écrit dans le message de
news:ef**************@tk2msftngp13.phx.gbl...
Very interesting
I thoght that it is common problem of webmasters and develpers to check how many users online!

There should be nice solvation of the problem.
"Patrice" <no****@nowhere.com> wrote in message
news:et**************@TK2MSFTNGP10.phx.gbl...
HTTP is essentially stateless. Possible options would be :
- when the browser closes call some server side code
- keep track of last request, you can then assume whatever delay you want for inactive users.

Unless you need something more specific I would starrt by checking
performance counters...

Patrice
--

"Armen Kirakosyan" <ar***@kirakosyan.com> a écrit dans le message de
news:eK***************@TK2MSFTNGP09.phx.gbl...
Hi
I need to see all active sessions
if someone closes browser in any way , closing, leaving etc.
I wanna know that
Session_start tells me if some one comes in
but I cannot determine if someone leaved it!
Session_end fires after 20 minutes
not good for me :-(

"Hans Kesting" <ne***********@spamgourmet.com> wrote in message
news:e6**************@TK2MSFTNGP12.phx.gbl...
> Armen Kirakosyan wrote:
>> Hi
>> I have web site developed and now wanna to check how many people is
>> connected
>> In all MS articles written to use
>> Application_start
>> Session_start
>> Session_end
>> functions in Global.asa
>> BUT!!!!!!!!!!!!!!!!!!!!!
>> after many tries I see that Session_end almost never fires
>> after checking many articles I see that MS wrong in its help manuals

and
>> documentation
>> even in MCSD book .Net web development where they brings that sample! >>
>> So who can help me plaese see how can I see how many users connected
>> to
>> my web
>>
>> Thanks
>
> When do you expect Session_End to fire? It does NOT fire
> when the user "leaves the site" or closes the browser.
> It does fire when the user has not done anything on the site
> for (default) 20 minutes.
> I did see a message somewhere that you need to store something
> in the session (have a "real" session) or else it will not fire.
>
> --
> Hans Kesting



Nov 19 '05 #6
Thanks a lot
"Patrice" <no****@nowhere.com> wrote in message
news:OM**************@tk2msftngp13.phx.gbl...
Keep in mind anyway that there's nothing allowing to know the guy just
pointed your browser to your site and then goes to lunch so you'll always
have to take these numbers as an estimation, roughly correct but an
estimation.

You'll see possible options at :
http://www.aspfaq.com/show.asp?id=2491

Patrice
--

"Armen Kirakosyan" <ar***@kirakosyan.com> a écrit dans le message de
news:ef**************@tk2msftngp13.phx.gbl...
Very interesting
I thoght that it is common problem of webmasters and develpers to check

how
many users online!

There should be nice solvation of the problem.
"Patrice" <no****@nowhere.com> wrote in message
news:et**************@TK2MSFTNGP10.phx.gbl...
> HTTP is essentially stateless. Possible options would be :
> - when the browser closes call some server side code
> - keep track of last request, you can then assume whatever delay you want > for inactive users.
>
> Unless you need something more specific I would starrt by checking
> performance counters...
>
> Patrice
>
>
> --
>
> "Armen Kirakosyan" <ar***@kirakosyan.com> a écrit dans le message de
> news:eK***************@TK2MSFTNGP09.phx.gbl...
>> Hi
>> I need to see all active sessions
>> if someone closes browser in any way , closing, leaving etc.
>> I wanna know that
>> Session_start tells me if some one comes in
>> but I cannot determine if someone leaved it!
>> Session_end fires after 20 minutes
>> not good for me :-(
>>
>>
>>
>> "Hans Kesting" <ne***********@spamgourmet.com> wrote in message
>> news:e6**************@TK2MSFTNGP12.phx.gbl...
>> > Armen Kirakosyan wrote:
>> >> Hi
>> >> I have web site developed and now wanna to check how many people is
>> >> connected
>> >> In all MS articles written to use
>> >> Application_start
>> >> Session_start
>> >> Session_end
>> >> functions in Global.asa
>> >> BUT!!!!!!!!!!!!!!!!!!!!!
>> >> after many tries I see that Session_end almost never fires
>> >> after checking many articles I see that MS wrong in its help
>> >> manuals
> and
>> >> documentation
>> >> even in MCSD book .Net web development where they brings that sample! >> >>
>> >> So who can help me plaese see how can I see how many users
>> >> connected
>> >> to
>> >> my web
>> >>
>> >> Thanks
>> >
>> > When do you expect Session_End to fire? It does NOT fire
>> > when the user "leaves the site" or closes the browser.
>> > It does fire when the user has not done anything on the site
>> > for (default) 20 minutes.
>> > I did see a message somewhere that you need to store something
>> > in the session (have a "real" session) or else it will not fire.
>> >
>> > --
>> > Hans Kesting
>>
>>
>
>



Nov 19 '05 #7

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

Similar topics

30
by: Robert Tweed | last post by:
Does anyone know a good resource discussing the issues involved in session theft? I've read a couple, but none that really address the problem apart from acknowledging that it is a problem; you...
2
by: Dinkster | last post by:
BackGround: - We are new to ASP - We thought we would experiment with using the session object (in proc) to store a small amount of data. - We get different results when cookieless is set to...
5
by: ASP.Confused | last post by:
As you can tell from my previous posts on this issue...I'm really confused :-/ I have a few ASP.NET web applications on my web host's "https" server. Our web host has a single "bin" folder for...
4
by: N. Demos | last post by:
Hello, I'm learning ASP.NET, and am having a strange problem with some example code from the book I'm using. The code increments and displays the value stored in a session variable when the "Add"...
5
by: fbwhite | last post by:
I know this issue has been brought up many times, but I have tried many of the solutions to no avail. I wanted to give my specific case to see if someone could be of any help. We are using the...
13
by: Alexander Widera | last post by:
hi, who has seen the follow problem or could help please? i visit a page .... i read a sesssion-var . ... everythink works...... i visit the page again..... error ... the sessionvar is null .... i...
10
by: tshad | last post by:
I have been using the default session state (InProc) and have found that I have been loosing my information after a period of time (normally 20 minutes). Is there anyway to find out how much...
9
by: MC | last post by:
I would like to display a timer in the corner of the page that shows the user how many minutes:seconds till the session times out. Are there any good examples out there? Google has again failed...
9
by: Suman | last post by:
Hi All, I am trying to experiment with sessions and they seem to be resetting everytime i visit the page. here is the code of the page <?php session_start(); $count = $_SESSION + 1;
3
by: tedpottel | last post by:
Hi I cannot get sessions to work. I have the following code </body> <? session_start(); $counter++; print "You have visited this page $counter times during this session";...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
1
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...
0
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...
0
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,...
0
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...
0
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...
0
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 ...

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.