Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have a web app that is designed as a single page application (SPA) that uses AJAX. Our clients have a problem when this is hosted behind TMG. Because only one page request is made at the start of use the session times out. After TMG times out and our application makes another AJAX request they get a redirect to a login page returned as the AJAX response. We are expecting a JSON response but we get a HTML response (the login page). We handle this and check the type of response we receive and display a message to the client asking them to refresh the page. This then redirects them to their TMG login page and then back to our application. We would like it if the session would be extended whenever our web application makes an ajax request.

How can we configure TMG so that any HTTP request (including the AJAX request) will extend the session time.

share|improve this question
Does your app keep a socket open or something? It is normal for a connection to be closed once the response has been received. – Mark Henderson Jun 19 '13 at 6:54
The app does not keep a socket open the connection is closed once the response has been received. We just want the session extended with every request. – Aran Mulholland Jun 19 '13 at 7:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.