Thanks for the response.
I may have missed the point but I'm still not clear on how to catch the session timeout service side. My service is hosted in IIS7 - the link you sent is based upon trapping it in a self-hosting application. I would need to know the specific username prior to cleaning up - I was hoping to be able to do all of this in the service.
For client side I could use webexception status to inform the user that the session has timed out - just need the service to clean itself up without client intervention.
Thanks.
Main Topics
Browse All Topics





by: apeterPosted on 2009-10-05 at 06:24:06ID: 25494921
Either in your client or in your wcf, if you catch your exception, you can easily differentiate what type of exception is thrown. Then based on the exception type you can do your clean up job.
en-us/libr ary/ system .net.webex ception.st atus.aspx
en-us/libr ary/ms7317 58.aspx
In the client you can get the webexception status which is explained more in this link, http://msdn.microsoft.com/
Catching timeout in wcf, http://msdn.microsoft.com/