473,411 Members | 2,186 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,411 software developers and data experts.

run asp-script when leaving / closing a page

Hi!

When a user enter my page, a cookie is created.
When the user leaves the page (closeing the page), the cookie needs to be
deleted.

How can I call an ASP-script when the user close/exit the page??

Best regards,
Øyvind Isaksen
Jul 19 '05 #1
2 2850
Øyvind Isaksen wrote on 11 okt 2003 in
microsoft.public.inetserver.asp.general:
When a user enter my page, a cookie is created.
When the user leaves the page (closeing the page), the cookie needs
to be deleted.

How can I call an ASP-script when the user close/exit the page??


1
You cannot [directly].

2
ASP is an intricate part of a page and runs BEFORE the page is on the
client.

3
Closing of a page is a clientside thing. The server has no knowledge of
that.

4
ONLY if the clientside browser is smart enough to launch a onclose event,
that event could call another asp page, that executes your ASP scripting.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #2
www.aspfaq.com/5003

Ray at home

"Øyvind Isaksen" <oy****@webressurs.no> wrote in message
news:up****************@TK2MSFTNGP09.phx.gbl...
Hi!

When a user enter my page, a cookie is created.
When the user leaves the page (closeing the page), the cookie needs to be
deleted.

How can I call an ASP-script when the user close/exit the page??

Best regards,
Øyvind Isaksen

Jul 19 '05 #3

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

Similar topics

1
by: Alex | last post by:
I have a website that is written in ASP. I feel pretty comfortable with ASP.NET since I work with it daily. My question is about porting the ASP site over to ASP.NET. 1.) If I port the ASP site to...
8
by: Afshar | last post by:
Hi Group, Please help ending my Nightmare! There's a Windows Service written in VC++ and I have an ASP.NET project that uses this sevice as a COM library. It just works fine in VS Internal Web...
12
by: Pepper | last post by:
I may be alone in this feeling, but I am a long time asp developer and after a few years of asp.net development still am not comfortable with the new way of doing things. Asp.net just seems too...
5
by: studio60podcast | last post by:
I have an ASP:Placeholder and I'm trying to populate with Label controls from the code behind after a button click, essentially creating a list of selections. But each time I click the button,...
2
by: Ken Fine | last post by:
I want to add the security question and answer security feature to the ChangePassword control. I am aware that this functionality is built into the PasswordRecovery tool. I have implemented the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.