I have a complex ASP.NET(c#) website which uses many web services. Every web services takes a username and password which I store in a session variable on login.
My problem is, when the session expires, which is very unpredictable (can be anytime), my website throws an object reference error.
What's the best way to go about capturing the session timeout in one place before it tries to use the web service with the expired session?