diff --git a/modules/attachments/attachments_content.php b/modules/attachments/attachments_content.php
index 7b8ec3dd5c415a98d525b0bcde527ab5ec87f31a..5dd21867b7b5428b31b20640f280abec2ea49c77 100755
--- a/modules/attachments/attachments_content.php
+++ b/modules/attachments/attachments_content.php
@@ -2099,6 +2099,6 @@ if(empty($_REQUEST['id'])){
     $js = 'setTimeout(function(){window.top.document.getElementById(\'liAttachement\').click()}, 1000);';
 }
 
-$js .= "setInterval(function(){window.top.clearTimeout(window.top.chronoExpiration);window.top.chronoExpiration=window.top.setTimeout('redirect_to_url(\'index.php?display=true&page=logout&logout=true\')', ".$_SESSION['config']['cookietime']."*60*1000); }, 10000);";
+$js .= "setInterval(function(){window.top.clearTimeout(window.top.chronoExpiration);window.top.chronoExpiration=window.top.setTimeout('redirect_to_url(\'index.php?display=true&page=logout&logout=true\')', ".$_SESSION['config']['cookietime']."*60*1000); }, 60000);";
 echo "{status : " . $status . ", content : '" . addslashes(_parse($content)) . "', error : '" . addslashes($error) . "', exec_js : '".addslashes($js)."'}";
 exit ();