Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

 
discard

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

Browse other questions tagged or ask your own question.