My ASP.net application involves limiting clients to a maximum number of concurrent logins. I have done this by storing the session id in a 'Shared' object property. I then depend on the session id to be removed when users log out, closes the window, or has a session timeout. Life was good untill I started testing timeout.
I had planned on using the Session_End function in Global.asax to remove the expired sessionid from my shared object when timeout occurs. However this will only work when sessions are in 'inProc' mode. For other issues we had to have session run out of process with the state server. So I hope to use the login functionality to poll the validity of the stored session ids and remove the ones that have exipired.
How can I find out if a session has expired by only knowing the session id?
I had planned on using the Session_End function in Global.asax to remove the expired sessionid from my shared object when timeout occurs. However this will only work when sessions are in 'inProc' mode. For other issues we had to have session run out of process with the state server. So I hope to use the login functionality to poll the validity of the stored session ids and remove the ones that have exipired.
How can I find out if a session has expired by only knowing the session id?