Re: Where to place server code to invoke when client page closes.
- From: "Mark Rae" <mark@xxxxxxxxxxxxxxxxx>
- Date: Tue, 14 Nov 2006 11:04:00 -0000
"Ricardo Vazquez" <rvazquez@xxxxxxxxx> wrote in message
news:ugdfsM9BHHA.3928@xxxxxxxxxxxxxxxxxxxxxxx
I ALREADY HAVE TRIED...
to invoke it at "Session_End" in Global.asax. But at this point of the
code the Telephony-server proxy object is already "null".
Why is is null? Are you setting it to null somewhere? Is the GC destroying
it because it's fallen out of sope?
PROBLEM: When the web client closes the page (or the browser) ASP.NET
should invoke a method of the Telephony Server (DisconnectClient). This is
very
How does the DisconnectClient method know which client to disconnect? Do you
pass it some sort of argument? Does each client object have some sort of
unique identifier property?
I have encountered a similar problem with a login audit table where the
Session_End needed to record the time that the logged-on user logged out. If
the user didn't log out "cleanly" i.e. by clicking the "Log out" button,
then all sorts of problems occurred when the session ended.
The solution was quite simple: when the user logged in, I persisted a unique
identifier representing the login object which I stored as a Session
variable, then amended the Session_End method to use that instead when the
session was torn down, either manually by the user logging out cleanly or by
the session timing out automatically.
.
- Follow-Ups:
- Re: Where to place server code to invoke when client page closes.
- From: Ricardo Vazquez
- Re: Where to place server code to invoke when client page closes.
- References:
- Where to place server code to invoke when client page closes.
- From: Ricardo Vazquez
- Where to place server code to invoke when client page closes.
- Prev by Date: Re: Importing an assembly?
- Next by Date: Re: how can i send parameter with writing code
- Previous by thread: Where to place server code to invoke when client page closes.
- Next by thread: Re: Where to place server code to invoke when client page closes.
- Index(es):