Jan 26, 2016 03:51 PM|dbrosnan|LINK
Thank you for the response. I don't believe I am misunderstanding Session.Timeout as the inital response suggested, and i also understand that All tabs share the same Session Cookie. Maybe i was not clear with my question. I will try and give some more information.
Let's say for example, a user logs into my system and when the user logs in I populate a value into a session property like the following.
Session["UserId"] = 415;
Let's say the user logged in at 4pm. I know that on my server the Session will timeout at 4.20pm because 20 minutes is the setting in the web.config for the session timeout.
Now, from the web page on the clients computer, i have some ajax that is polling the server every 2 minutes. So at 4:02pm the ajax will poll the server. What i want to know, is at this time i want to check how long will it be before the Session Times out.
The answer should be 18 minutes. But i do not know how to check this. When the ajax polls at 4:04pm the answer should be 16 minutes.
You can ignore what i said about multiple tabs, it is not that relevant for my question. I just want to know when the session will expire. Does this make sense?