﻿    var x=0; 
　　function myRefresh() 
　　{ 
　　var httpRequest = new ActiveXObject("microsoft.xmlhttp"); 
　　httpRequest.open("GET", "/test.aspx", false); 
　　httpRequest.send(null); 
　　x++; 
　　if(x <120) //60次，也就是Session真正的过期时间是60分钟 
　　{ 
　　setTimeout("myRefresh()",60*1000); //60秒 
　　} 
　　} 
　　myRefresh(); 
