Connecting Tech Pros Worldwide Help | Site Map

Exiting IE Browser

fniles
Guest
 
Posts: n/a
#1: Jan 2 '08
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.


Bob Barrows [MVP]
Guest
 
Posts: n/a
#2: Jan 2 '08

re: Exiting IE Browser


fniles wrote:
Quote:
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.


fiefie.niles@gmail.com
Guest
 
Posts: n/a
#3: Jan 3 '08

re: Exiting IE Browser


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:
Quote:
fniles wrote:
Quote:
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.
Anthony Jones
Guest
 
Posts: n/a
#4: Jan 3 '08

re: Exiting IE Browser


<fiefie.niles@gmail.comwrote in message
news:823d677a-caba-494f-850b-3392b8ffc33f@d21g2000prf.googlegroups.com...
Quote:
>
>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


Closed Thread