Hi Alberto,
Since you first posted this I thought it would be a great idea to let the user know when the system will automatically log him out if he does not keep on working.
Below is the script that I found and then modified to work for me.
I use this one once the user has logged in and another one if he is not logged in.
I hope this helps you.
Regards
Johan de Klerk
<form name="counter">
<p align="center">
<input type="text" size="82" name="d2" style="font-weight: bold; border: 3px solid #FF0000; color:#FF0000; background-color:#FFFF00; text-align:center">
</form>
<script>
<!--
var seconds=60
var minutes = 1
document.counter.d2.value="If you do not work you will automatically be logged out in "+minutes+" minutes and "+seconds+" seconds."
function display(){
if (seconds<=0){
seconds=60
minutes-=1
}
if (minutes<0){
seconds=0
minutes=0
window.open('
http://www.dynamicdrive.com/forums/showthread.php?t=6138','_top');}
else
seconds-=1
document.counter.d2.value="If you do not work you will automatically be logged out in "+minutes+" minutes and "+seconds+" seconds."
setTimeout("display()",1000)
}
display()
-->
</script>