时间:2021-07-01 10:21:17 帮助过:42人阅读
<script src="js/Jquery1.7.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
function post() {
$.ajax({
type: "post",
contentType: "application/json",
url: "WebBlock.aspx"
})
}
setInterval(post, 30000);
})
</script>
每个半分钟访问下本界面!所以session不会过期(前提session的过期时间要大于半分钟);