detect explorer close

Hi

I´m developing an ASP.NET application, this application need´s save records
on a tempory table of data base. when the user close session I delete this
table. But what can I do when the user close explorer without close
sesseion? how can I detect this event?

thanks
felix.gonzalez [ Do, 03 April 2008 09:36 ] [ ID #1934529 ]

Re: detect explorer close

You can't reliably detect this, just use the Session_End event as you have
been doing.

"Felix González" <felix.gonzalez [at] gvgest.es> wrote in message
news:O1yjp1VlIHA.2328 [at] TK2MSFTNGP03.phx.gbl...
> Hi
>
> I´m developing an ASP.NET application, this application need´s save
> records on a tempory table of data base. when the user close session I
> delete this table. But what can I do when the user close explorer without
> close sesseion? how can I detect this event?
>
> thanks
>
>
>
>
Aidy [ Do, 03 April 2008 10:50 ] [ ID #1934531 ]

Re: detect explorer close

Hi Felix,

You can try this.

1) Write a javascript function and call from the unload event of the window
(client side).
2) Send a request to server program (Ajax) from within this javascript
function.

Let me know if this helps.

Regards,
Augustin

"Felix González" <felix.gonzalez [at] gvgest.es> wrote in message
news:O1yjp1VlIHA.2328 [at] TK2MSFTNGP03.phx.gbl...
> Hi
>
> I´m developing an ASP.NET application, this application need´s save
> records on a tempory table of data base. when the user close session I
> delete this table. But what can I do when the user close explorer without
> close sesseion? how can I detect this event?
>
> thanks
>
>
>
Augustin Prasanna [ Do, 03 April 2008 11:54 ] [ ID #1934544 ]
Microsoft » microsoft.public.dotnet.framework.aspnet » detect explorer close

Vorheriges Thema: kill or abort Server process
Nächstes Thema: Semi-Automatic code documentation