I faced this problem: JS(jquery) application is integrated to joomla. How can i know user still active on JS application and if user is active how can i extend joomla session timeout?
Do an Ajax call once in a while which just updates the session time on the server. You can use window.setInterval() in JS to schedule this.