Heh, I was waiting for someone to go there. Yes, you are correct that specific headers can be added to an HTTP request by the client which signal to the server that the request was made via an Ajax call. Strictly speaking though, they aren't guaranteed to exists. Regardless, the existence of such a header would in no way tell ColdFusion to ignore the usual session timeout-resetting that occurs with any other request to a ColdFusion page. ColdFusion treats Ajax requests like any other request your browser sends.
~Brad -------- Original Message -------- Subject: RE: keeping a session alive From: "Andy Matthews" <[email protected]> Date: Fri, August 14, 2009 4:20 pm To: cf-talk <[email protected]> Technically the server can know, via headers. http://www.developertutorials.com/learn-ajax/custom-http-headers-2643.php At least if you're using jQuery I believe that it adds this to the header automatically. -----Original Message----- From: [email protected] [mailto:[email protected]] Sent: Friday, August 14, 2009 3:59 PM To: cf-talk Subject: RE: keeping a session alive >> I have read that an AJAX request will not keep the session alive. Where did you hear that? If the Ajax request is to a ColdFusion page that is part of your application it will most certainly keep the session alive. The server, after all, doesn't even know it is an Ajax call. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325464 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

