473,320 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Write procedure at the browse closing

hi,
i have a web application. I just want whenever any user close the
browser then that time application check whether that user properly
logged out or not. If the user does not logout property then browser
should not be closed. For this what should i do.

Apr 10 '07 #1
5 910
You can't detect when the user closes their browser. You are notified when
the session times out though. Look at the Session's End event.

"Riky" <pa***********@gmail.comwrote in message
news:11*********************@n76g2000hsh.googlegro ups.com...
hi,
i have a web application. I just want whenever any user close the
browser then that time application check whether that user properly
logged out or not. If the user does not logout property then browser
should not be closed. For this what should i do.

Apr 10 '07 #2
"Riky" <pa***********@gmail.comwrote in message
news:11*********************@n76g2000hsh.googlegro ups.com...
For this what should i do.
The server cannot detect when the user closes the browser.
Apr 10 '07 #3
You can use client-side window unload event to take some actions on client
side. Although you cannot cancel the event, you can alert the user or run
some other meaningful code.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Riky" <pa***********@gmail.comwrote in message
news:11*********************@n76g2000hsh.googlegro ups.com...
hi,
i have a web application. I just want whenever any user close the
browser then that time application check whether that user properly
logged out or not. If the user does not logout property then browser
should not be closed. For this what should i do.

Apr 10 '07 #4
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:uM*************@TK2MSFTNGP05.phx.gbl...
You can use client-side window unload event to take some actions on client
side. Although you cannot cancel the event, you can alert the user or run
some other meaningful code.
Yes, but you'd need to do that on *every* page in your site, and the code
would fire every time the user navigated from page to page, not just when
the browser was closed...
Apr 10 '07 #5
Yes, it' would be a headache, but at least something...

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Mark Rae" <ma**@markNOSPAMrae.netwrote in message
news:eR****************@TK2MSFTNGP06.phx.gbl...
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:uM*************@TK2MSFTNGP05.phx.gbl...
>You can use client-side window unload event to take some actions on
client side. Although you cannot cancel the event, you can alert the user
or run some other meaningful code.

Yes, but you'd need to do that on *every* page in your site, and the code
would fire every time the user navigated from page to page, not just when
the browser was closed...

Apr 10 '07 #6

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

Similar topics

12
by: Sean | last post by:
Hi, I have the following script: ----------------------------------------------------------------------------------- <script type="text/javaScript"> <!-- document.write('<div...
1
by: Mark Dicken | last post by:
Hi All I have found the following Microsoft Technet 'Q' Article :- Q210368 -ACC2000: How to Pass an Array as an Argument to a Procedure (I've also copied and pasted the whole contents into...
4
by: nicholas | last post by:
Could someone tell me how to implement an INSERT on an aspx-page using a stored procedure, in VB-code? THX, Nic PS: I have been trying this, but it ain't working: Sub insert_new_content...
4
by: T.S.Negi | last post by:
Hello All, I want to Find out list of tables, views and stored procedure used in vb form. If any body have any idea about it, pls.let me know. Thanx in adv. T.S.Negi
0
by: caifuweb | last post by:
Recommend a very good news to release procedure toward everyone The asp news releases procedure is design by the Chinese boy There is very high popularity in China The function of the procedure is...
7
by: Siv | last post by:
Hi, I have a stored procedure that I want to execute and then wait in a loop showing a timer whilst it completes and then carry on once I get notification that it has completed. The main reason...
10
by: John Bailo | last post by:
I created a stored procedure called MANLIB.MAN535CL based on a CL/COBOL program. I know it works because I can run it successfully. However, I don't really understand where it is on the...
4
by: rdemyan | last post by:
I'm using code from the following web page to open the API Browse Folder dialog http://www.mvps.org/access/api/api0002.htm It all works fine. But if the dialog box is open and the user closes...
1
by: love2livedislife | last post by:
I have a requirement as follows: while executing the procedure for first time i'll open a cursor and read the first row from it and return the value through OUT parameter of procedure without...
2
by: acw | last post by:
On a SQL Server 2000 db I would like to setup a stored procedure that accesses couple tables and runs the extended stored procedure xp..cmdshell. The goal is to grant users with limited privileges...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.