Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Re: Is Session_OnEnd invoked when the window is closed


Message #1 by "Ken Schaefer" <ken@a...> on Wed, 12 Jun 2002 17:46:31 +1000
Yes - you would need this for every page. That is what #include files are
for

No - there is not an easier way. When a user closes their browser, nothing
is sent to the server, so you don't know that they have closed their
browser.

Cheers
Ken

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Steven Reule" <Steven.Reule@d...>
Subject: [asp_web_howto] Re: Is Session_OnEnd invoked when the window is
closed

: Wouldn't this be needed for every page in the site?
:
: If so, isn't there an easier way to know when a person closes out their
: browser?
:
:
: >>> deepar_07@y... 06/10/02 07:57PM >>>
:
:  Hi,
: You can submit the page to another asp page on the on_Unload event.
: This ASP page will just have one liner i.e. Session.Abandon.
:
:   Venkatesh V <v_venkie@y...> wrote: hello guys,
:
: I am developing an ASP Web Application with advanced Session
: Management. I
: set a flag when the user is active and reset it when he logs out. I
: have
: used a Signout button to logout the user. In that Page I call
: Session.Abandon which inturn calls my Session_onend function in
: Global.asa
: file. That happens fine and the flag gets reset.
:
: Now, I want to know how to do the same thing when the user accidentally
: or
: incidentally closes the browser without logging out . In that case i
: found
: that Session_onend is not called.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Message #2 by "Waleed Fahmy" <fahmywaleed@h...> on Tue, 11 Jun 2002 23:47:34
Hi
   OnUnload for the Page object?. I tried that but it does not fire when 
you close the browser.  Second if you are haveing any controls on the page 
that are run on the server each time they cause a Post Back the unload 
event for the page fires.  I am not sure that I exactly understand what 
you mean.

Waleed



> What I did is set onunload event.
and in when this event is happens all I do I open new window
that will call Session.Abandon for me.

Oleg.

-----Original Message-----
From: Venkatesh V [mailto:v_venkie@y...]
Sent: June 10, 2002 3:52 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Is Session_OnEnd invoked when the window is
closed


hello guys,

I am developing an ASP Web Application with advanced Session Management. I
set a flag when the user is active and reset it when he logs out. I have
used a Signout button to logout the user. In that Page I call
Session.Abandon which inturn calls my Session_onend function in Global.asa
file. That happens fine and the flag gets reset.

Now, I want to know how to do the same thing when the user accidentally or
incidentally closes the browser without logging out . In that case i found
that Session_onend is not called.

Can anyone help me in this regard.

Regards
Venkatesh

---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20

Message #3 by "Steven Reule" <Steven.Reule@d...> on Tue, 11 Jun 2002 14:55:56 -0700
Wouldn't this be needed for every page in the site?

If so, isn't there an easier way to know when a person closes out their
browser?


>>> deepar_07@y... 06/10/02 07:57PM >>>

 Hi,
You can submit the page to another asp page on the on_Unload event.
This ASP page will just have one liner i.e. Session.Abandon.
 
  Venkatesh V <v_venkie@y...> wrote: hello guys,

I am developing an ASP Web Application with advanced Session
Management. I 
set a flag when the user is active and reset it when he logs out. I
have 
used a Signout button to logout the user. In that Page I call 
Session.Abandon which inturn calls my Session_onend function in
Global.asa 
file. That happens fine and the flag gets reset. 

Now, I want to know how to do the same thing when the user accidentally
or 
incidentally closes the browser without logging out . In that case i
found 
that Session_onend is not called. 

Can anyone help me in this regard.

Regards
Venkatesh

---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme

r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme

r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme

r-20

---------------------------------
Don't miss Yahoo India's Coverage of 2002 FIFA World Cup   


---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme

r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme

r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme

r-20


*******************************************************************
Confidentiality Notice: This e-mail message, including any
attachments, is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any
unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender
by reply e-mail and destroy all copies of the original message.
*******************************************************************

Message #4 by =?iso-8859-1?q?Deepa=20Ravikumar?= <deepar_07@y...> on Tue, 11 Jun 2002 03:57:42 +0100 (BST)
--0-82064642-1023764262=:79277
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit


 Hi,
You can submit the page to another asp page on the on_Unload event. This ASP page will just have one liner i.e. Session.Abandon.
 
  Venkatesh V <v_venkie@y...> wrote: hello guys,

I am developing an ASP Web Application with advanced Session Management. I 
set a flag when the user is active and reset it when he logs out. I have 
used a Signout button to logout the user. In that Page I call 
Session.Abandon which inturn calls my Session_onend function in Global.asa 
file. That happens fine and the flag gets reset. 

Now, I want to know how to do the same thing when the user accidentally or 
incidentally closes the browser without logging out . In that case i found 
that Session_onend is not called. 

Can anyone help me in this regard.

Regards
Venkatesh

---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20

---------------------------------
Don't miss Yahoo India's Coverage of 2002 FIFA World Cup   
Message #5 by Oleg Kapeljushnik <c-oleg.kapeljushnik@w...> on Mon, 10 Jun 2002 08:34:31 -0400
What I did is set onunload event.
and in when this event is happens all I do I open new window
that will call Session.Abandon for me.

Oleg.

-----Original Message-----
From: Venkatesh V [mailto:v_venkie@y...]
Sent: June 10, 2002 3:52 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Is Session_OnEnd invoked when the window is
closed


hello guys,

I am developing an ASP Web Application with advanced Session Management. I
set a flag when the user is active and reset it when he logs out. I have
used a Signout button to logout the user. In that Page I call
Session.Abandon which inturn calls my Session_onend function in Global.asa
file. That happens fine and the flag gets reset.

Now, I want to know how to do the same thing when the user accidentally or
incidentally closes the browser without logging out . In that case i found
that Session_onend is not called.

Can anyone help me in this regard.

Regards
Venkatesh

---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20

Message #6 by "Venkatesh V" <v_venkie@y...> on Mon, 10 Jun 2002 07:51:44
hello guys,

I am developing an ASP Web Application with advanced Session Management. I 
set a flag when the user is active and reset it when he logs out. I have 
used a Signout button to logout the user. In that Page I call 
Session.Abandon which inturn calls my Session_onend function in Global.asa 
file. That happens fine and the flag gets reset. 

Now, I want to know how to do the same thing when the user accidentally or 
incidentally closes the browser without logging out . In that case i found 
that Session_onend is not called. 

Can anyone help me in this regard.

Regards
Venkatesh

  Return to Index