当SESSION失效时自动转到其它页面

类别:.NET开发 点击:0 评论:0 推荐:

示例:
<script language=javascript>
function window.onunload()
{
        if (event.clientX < 0 && event.clientY < 0)
              window.open("logout.aspx", "logout");
}
</script>

in logout.aspx:
<% Session.Abandon() %>

参考:
http://www.eggheadcafe.com/articles/20021016.asp

本文地址:http://com.8s8s.com/it/it43342.htm