Is there a standard way, in ASP.Net, to share resources between web requests?
This is my problem:
- There is a web service I need to query from the code behind of several pages
- This web service only allows one logged in session at a time
- If you log in twice, the first session is invalidated
- Sessions are stored as strings, and expire every 45 minutes, at which point I must re-authenticate
- Two queries can run at the same time as long as they are using the same session
That being said, what would be the best way to have this session available to multiple pages / requests at the same time? And how can I make sure that once the session expires, that, after a re-login, the new session is shared?
This is all run on a single server.