If keepAliveUrl returns a failure code (e.g. 401, because your session has been closed by the server) then that failure will be silently ignored: https://github.com/LinearSoft/jquery-idleTimeout-plus/blob/master/src/jquery-idleTimeout-plus.js#L427