Ask a Question related to ASP Database, Design and Development.
-
Øyvind Isaksen #1
Delete cookie when exit 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
Øyvind Isaksen Guest
-
Delete Cookie Control?
What kind of JavaScript is needed to delete all of the cookies for the current web site, and can that be registered in an ASP.NET page as a button?... -
Cookies set one time, I delete cookie, cookie is never set again!
I am having this problem: My PHP script will set a cookie, it's there in my /Cookies folder. I delete the cookie (I have to for testing purposes,... -
#25136 [NEW]: THIS IS NOT A BUG (I think) just cookie issue, it doesnt delete!
From: pmpp at sapo dot pt Operating system: Windows Xp PHP version: 4.3.2 PHP Bug Type: Unknown/Other Function Bug... -
Delete the cookie?
Hello everyone, Does anyone know how to get rid of the cookies when the internet explorer window is closed after we use Forms authentication mode... -
How to delete a cookie?
I need the statement for deleting a permanent cookie that I created earlier... The .NET documentation refers to the .discard property, but the... -
Ray at #2
Re: Delete cookie when exit page
You have to use client-side code for this. The webserver has no way of
knowing if the user closes his browser. Try asking in client side code
about executing a script when someone closes a browser or leaves your page.
And if the cookie needs to be deleted as soon as the person is no longer at
your site, what are you using the cookie for? You could use session
variables instead, perhaps.
Ray at home
"Øyvind Isaksen" <oyvind@webressurs.no> wrote in message
news:eeNqmXDkDHA.2268@TK2MSFTNGP12.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
>
>
Ray at Guest



Reply With Quote

