On windows authentication( intranet web application )
When the session is about to timeout, the client should be presented with a POP-UP that asks to click OK to extend the session or else cancel to timeout the session.
Which is the better way to accomplish this task. By Using Ajax Call or By handling it in the code behind file when the session(userid) is nothing