Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to: do something on the server when user close the browser?

Reply
Thread Tools

How to: do something on the server when user close the browser?

 
 
Feng
Guest
Posts: n/a
 
      12-02-2003
Hi,

What I need is to run some ASP code on the server, when
user close his/her browser. I tried to create a "OnUnload"
event handler on client side JavaScript to do a "Submit
()". But that doesn't seem to help.

Can someone help me on this?

Thanks
 
Reply With Quote
 
 
 
 
AW
Guest
Posts: n/a
 
      12-02-2003
Hi Feng,

You may want to use the Session_End event, which happen some time after the
user closes his/her browser (after the timeout, which has a default of 20
minutes).

If not, you may use a javascript as you guessed, but you would instead have
it to open another window that would call an url on you site to tell that
the browser was closed.
--
To reply, remove a "l" before the @ sign.

Arnaud Weil - MCT, MCSD.Net, MCAD.Net


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to close a TCP socket? (TCPSocket#close doesn't close it) IƱaki Baz Castillo Ruby 7 01-12-2010 01:32 PM
close all child windows when close the main window jrefactors@hotmail.com HTML 6 08-07-2008 09:10 AM
Why does JdbcRowSetImpl.close() close the database connection? Paul van Rossem Java 0 04-07-2005 07:01 PM
JavaMail POP3 folder.close() method close also store! Daniel Albisser Java 1 04-07-2004 03:45 PM
How to close child browser while parent close? Denon ASP .Net 1 11-14-2003 08:14 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57