|
 |
asp_web_howto thread: Session_OnEnd trigger on client
Message #1 by "Elton Machado - Ideias Digitais" <info@i...> on Sun, 28 Jan 2001 23:34:13 -0000
|
|
Hey guys somebody can tell me how do I trigg an session.abandon on client
side like when the user close the browser or change to another side how
could i trigger an event to say to server that user goes off?
I would like not to use the session timeout but explicit abandon withou user
knownlegment.
Any help will be appreciatted :)
Thanks
Elton
info@i...
Message #2 by Imar Spaanjaars <Imar@S...> on Mon, 29 Jan 2001 07:56:26 +0100
|
|
You can't, actually, because there is no way of knowing that the user has
actually left your page.
Either provide a link for them to log out (so the sessions for those who
decently log out are ended right away) or set your timeout period rather
short (or both)
You could also try some client side JavaScript that is run in the OnUnLoad
event. In that event, call an ASP page with the Session.Abandon method in
it. This method is far from guaranteed to function. It will not always
fire, it can be prevented from running, it can be a pain for the client and
older browsers might not support it.
HtH
Imar
At 04:12 AM 1/29/2001 -0800, you wrote:
>Hey guys somebody can tell me how do I trigg an session.abandon on client
>side like when the user close the browser or change to another side how
>could i trigger an event to say to server that user goes off?
>
>I would like not to use the session timeout but explicit abandon withou user
>knownlegment.
>
>Any help will be appreciatted :)
>
>Thanks
>
>Elton
>info@i...
Message #3 by "Whitmore, Todd x78046" <WhitmorT@b...> on Mon, 29 Jan 2001 12:25:02 -0500
|
|
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C08A18.ED6FCFF0
Content-Type: text/plain;
charset="iso-8859-1"
Having a 'Logoff' link or button may seem like a great idea so that you can
clean up and data setup during the duration of the session - but IMHO users
just 1) close the browser or b) navigate away from your page. In my
application is critical to know if the session went away, so we created a
little ActiveX control that sits in the main nav bar frame and sends a
heartbeat via TCP once every minute. If no heartbeats are received within 3
minutes, the sentinel program on the server tells all interested programs
that a particular user session has been terminated. It's far from
fool-proof, but it gets the job done
-----Original Message-----
From: Imar Spaanjaars [mailto:Imar@S...]
Sent: Monday, January 29, 2001 1:56 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Session_OnEnd trigger on client
You can't, actually, because there is no way of knowing that the user has
actually left your page.
Either provide a link for them to log out (so the sessions for those who
decently log out are ended right away) or set your timeout period rather
short (or both)
You could also try some client side JavaScript that is run in the OnUnLoad
event. In that event, call an ASP page with the Session.Abandon method in
it. This method is far from guaranteed to function. It will not always
fire, it can be prevented from running, it can be a pain for the client and
older browsers might not support it.
HtH
Imar
At 04:12 AM 1/29/2001 -0800, you wrote:
>Hey guys somebody can tell me how do I trigg an session.abandon on client
>side like when the user close the browser or change to another side how
>could i trigger an event to say to server that user goes off?
>
>I would like not to use the session timeout but explicit abandon withou
user
>knownlegment.
>
>Any help will be appreciatted :)
>
>Thanks
>
>Elton
>info@i...
---
MaximumASP offers enhanced hosting solutions on the Windows 2000 platform.
Dedicated processor, RAM, and server resources provide dedicated server
performance at virtual server prices. Commercial components provided; custom
components allowed.
$subst('Email.Unsub')
Message #4 by "Elton Machado - Ideias Digitais" <info@i...> on Mon, 29 Jan 2001 19:34:44 -0000
|
|
This looks good may is the right way, I agree that users normally don't use
the logout button or something like that they simple close the windows. I
have been using the Unload event but as another person says it doesn't work
at all the times and is far from perfect.
This ideia of using something to get pulse from aplication is good could you
send me some example how to do it? I'm new to activex but I have some
experience at visual basic. I really need that any help will be apreciated.
Thanks
Elton Machado
-----Mensagem original-----
De: Whitmore, Todd x78046 [mailto:WhitmorT@b...]
Enviada: segunda-feira, 29 de Janeiro de 2001 17:25
Para: ASP Web HowTo
Assunto: [asp_web_howto] Re: Session_OnEnd trigger on client
Having a 'Logoff' link or button may seem like a great idea so that you can
clean up and data setup during the duration of the session - but IMHO users
just 1) close the browser or b) navigate away from your page. In my
application is critical to know if the session went away, so we created a
little ActiveX control that sits in the main nav bar frame and sends a
heartbeat via TCP once every minute. If no heartbeats are received within 3
minutes, the sentinel program on the server tells all interested programs
that a particular user session has been terminated. It's far from
fool-proof, but it gets the job done
-----Original Message-----
From: Imar Spaanjaars [mailto:Imar@S...]
Sent: Monday, January 29, 2001 1:56 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Session_OnEnd trigger on client
You can't, actually, because there is no way of knowing that the user has
actually left your page.
Either provide a link for them to log out (so the sessions for those who
decently log out are ended right away) or set your timeout period rather
short (or both)
You could also try some client side JavaScript that is run in the OnUnLoad
event. In that event, call an ASP page with the Session.Abandon method in
it. This method is far from guaranteed to function. It will not always
fire, it can be prevented from running, it can be a pain for the client and
older browsers might not support it.
HtH
Imar
Message #5 by Mike Price <mprice@a...> on Tue, 30 Jan 2001 08:18:06 -0000
|
|
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C08A95.2CD99F96
Content-Type: text/plain;
charset="iso-8859-1"
Only problem with Active X Controls is that they only work on Internet
Explorere
Mike
-----Original Message-----
From: Whitmore, Todd x78046 [mailto:WhitmorT@b...]
Sent: 29 January 2001 17:25
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Session_OnEnd trigger on client
Having a 'Logoff' link or button may seem like a great idea so that you can
clean up and data setup during the duration of the session - but IMHO users
just 1) close the browser or b) navigate away from your page. In my
application is critical to know if the session went away, so we created a
little ActiveX control that sits in the main nav bar frame and sends a
heartbeat via TCP once every minute. If no heartbeats are received within 3
minutes, the sentinel program on the server tells all interested programs
that a particular user session has been terminated. It's far from
fool-proof, but it gets the job done
-----Original Message-----
From: Imar Spaanjaars [ mailto:Imar@S...
<mailto:Imar@S...> ]
Sent: Monday, January 29, 2001 1:56 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Session_OnEnd trigger on client
You can't, actually, because there is no way of knowing that the user has
actually left your page.
Either provide a link for them to log out (so the sessions for those who
decently log out are ended right away) or set your timeout period rather
short (or both)
You could also try some client side JavaScript that is run in the OnUnLoad
event. In that event, call an ASP page with the Session.Abandon method in
it. This method is far from guaranteed to function. It will not always
fire, it can be prevented from running, it can be a pain for the client and
older browsers might not support it.
HtH
Imar
At 04:12 AM 1/29/2001 -0800, you wrote:
>Hey guys somebody can tell me how do I trigg an session.abandon on client
>side like when the user close the browser or change to another side how
>could i trigger an event to say to server that user goes off?
>
>I would like not to use the session timeout but explicit abandon withou
user
>knownlegment.
>
>Any help will be appreciatted :)
>
>Thanks
>
>Elton
>info@i...
---
MaximumASP offers enhanced hosting solutions on the Windows 2000 platform.
Dedicated processor, RAM, and server resources provide dedicated server
performance at virtual server prices. Commercial components provided; custom
components allowed.
---
$subst('Email.Unsub')
---
MaximumASP offers enhanced hosting solutions on the Windows 2000 platform.
Dedicated processor, RAM, and server resources provide dedicated server
performance at virtual server prices. Commercial components provided; custom
components allowed.
$subst('Email.Unsub')
|
|
 |