473,327 Members | 1,976 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,327 software developers and data experts.

Exiting IE Browser

I am using classic ASP.
Is there a way when a user close the IE browser for me to know and execute
some ASP codes ?
What I need is, when they close the IE browser, I would like to go to the
database and modify some data there.
In VB, there is Form_close event. Where in ASP I can put my codes when they
exit the IE browser ?
Thank you.
Jan 2 '08 #1
3 1830
fniles wrote:
I am using classic ASP.
Is there a way when a user close the IE browser for me to know and
execute some ASP codes ?
What I need is, when they close the IE browser, I would like to go to
the database and modify some data there.
In VB, there is Form_close event. Where in ASP I can put my codes
when they exit the IE browser ?
Thank you.
No there isn't. Sorry. You will need to use a scheduled task to do your
cleanup. See
http://classicasp.aspfaq.com/general.../sessions.html
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jan 2 '08 #2
Thank you.

1. Can I put my clean up codes in the Session_OnEnd or
Application_OnEnd in Global.asa ?
2. In Session_OnEnd or Application_OnEnd, can I do Response.Redirect
"anotherpage.asp" ?

Thank you.

On Jan 2, 4:22*pm, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
wrote:
fniles wrote:
I am using classic ASP.
Is there a way when a user close the IE browser for me to know and
execute some ASP codes ?
What I need is, when they close the IE browser, I would like to go to
the database and modify some data there.
In VB, there is Form_close event. Where in ASP I can put my codes
when they exit the IE browser ?
Thank you.

No there isn't. Sorry. You will need to use a scheduled task to do your
cleanup. Seehttp://classicasp.aspfaq.com/general/how-do-i-count-the-number-of-cur...
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jan 3 '08 #3
<fi**********@gmail.comwrote in message
news:82**********************************@d21g2000 prf.googlegroups.com...
>
1. Can I put my clean up codes in the Session_OnEnd or
Application_OnEnd in Global.asa ?
2. In Session_OnEnd or Application_OnEnd, can I do Response.Redirect
"anotherpage.asp" ?
I wouldn't trust either of these.

Store a session expiry value in the database and have a scheduled task tidy
up any session that has expired.

Give the user a 'log out' option in your HTML so that there is an option to
explicitly close things out. At the point navigate to a Logged out page (or
the login/home page).

--
Anthony Jones - MVP ASP/ASP.NET
Jan 3 '08 #4

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

Similar topics

2
by: Hal Vaughan | last post by:
I have a class that is sometimes called from the command line and sometimes from another class. When the user clicks "Quit" on the panel it opens, if it is running from the command line, it...
22
by: L. Westmeier | last post by:
Is there a way to have to exiting point in a void function? I don't want to exit the program but just this function. Any answers appreciated. L. Westmeier
7
by: David Elliott | last post by:
I have created an application that will dynamically load other DLLs (plugins). The new plugin is a winform with an embedded IE Browser. I am wanting to have the form to run in its own thread....
2
by: Bonj | last post by:
When trying to debug an ASP.NET project by placing a breakpoint in one of the functions in the codebehind, VS correctly stops at the breakpoint, and I can step through. But soon after, the process...
0
by: Anne | last post by:
hie there, i have a couple of questions that i need help on. the first is regarding the closing of a browser.i have an exit button which on click i would like it to totally close the browser, and...
1
by: bbdobuddy | last post by:
>I have a link button that I want to have the program closed when I click >it. > The quesition is what is the syntax that makes this possible. <linkdefhere onclick="javascript:window.close();">...
3
by: teo | last post by:
I have an object stored in the Page.Cache. (its name is the SessionId number). I'd like to remove it from the Cache when the user close or abandons 'mySite.aspx' page (when he closes the...
6
by: Ant | last post by:
Hi all, I'm putting together a simple help module for my applications, using html files stored in the application directory somewhere. Basically it sets up a basic web server, and then uses the...
3
by: WISEMANOFNARNIA | last post by:
I would like to prevent a user from exiting a page by clicking on links. the only way he should be able to exit is clicking on a 'save' button or a 'cancel' button. I can see that javascript is...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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...

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.