Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mapyourproperty/b8c22ec92bf31e647ef5 to your computer and use it in GitHub Desktop.
Save mapyourproperty/b8c22ec92bf31e647ef5 to your computer and use it in GitHub Desktop.
// http://app.toronto.ca/DevelopmentApplications/dwr/test/MapSearchService
var reply0 = function(data)
{
if (data != null && typeof data == 'object') console.log(dwr.util.toDescriptiveString(data, 100));
else dwr.util.setValue('d0', dwr.util.toDescriptiveString(data, 1));
}
function keep_alive() {
http_request = new XMLHttpRequest();
http_request.open('GET', "/restricted_file_url");
http_request.send(null);
};
setInterval(keep_alive,840000); //My session expires at 15 minutes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment