Exiting IE Browser
am 02.01.2008 23:03:51 von fniles
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.
Re: Exiting IE Browser
am 02.01.2008 23:22:37 von reb01501
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/how-do-i-count-the-numb er-of-current-users/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.
Re: Exiting IE Browser
am 03.01.2008 04:57:20 von fiefie.niles
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=A0pm, "Bob Barrows [MVP]"
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-n umber=
-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.
Re: Exiting IE Browser
am 03.01.2008 12:29:01 von Anthony Jones
wrote in message
news:823d677a-caba-494f-850b-3392b8ffc33f@d21g2000prf.google groups.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