关闭浏览器注销session

1
2
3
4
5
6
7
8
9
10
function   window.onbeforeunload()   
{
if(event.clientX>360&&event.clientY<0||event.altKey)
{
// window.event.returnValue="确定要退出登录吗?";
var url = "<%=path%>/pages/SessionEnd.jsp";
var callback = processAjaxResponse;
executeXhr(callback, url);
}
}