document.getElementById('register-success') ?
post_success_timeout : activity_timeout;
+ /*
console.debug('checking activity timeout=' +
timeout + ' : time range (ms) = ' + diff);
+ */
if (diff > timeout) {
location.href = timeout_redirect;
activity_checker_thread();
+// No other onload should be firing for this page.
+window.onload = function() {
+ // Clear all values on page load to avoid browser-back leaking
+ // sensitive information.
+ // Note that disabling all page-level caching does not suffice.
+
+ var inputs = document.getElementsByTagName('input');
+ for (var i = 0; i < inputs.length; i++) {
+ var input = inputs[i];
+ var type_ = input.getAttribute('type');
+ // avoid modifying input type=submit, checkbox's, radio's
+ if (type_ == 'text') {
+ input.value = '';
+ }
+ }
+}
+