日期:2014-05-17  浏览次数:20807 次

asp 网页直接关闭=会员登录以后注销
象126   yahoo等邮箱一样
关闭窗口的时候
就相当于注销登录
这个怎么在asp中实现?
在线等待

------解决方案--------------------
问题解决了!在网页中隐藏一个框架,例如:
<frameset rows= "*,0 " frameborder= "no " border= "0 " framespacing= "0 ">
<frame src= "index_top.asp " name= "mainFrame " id= "mainFrame " />
<frame src= "bottom.asp " name= "bottomFrame " scrolling= "No " noresize= "noresize " id= "bottomFrame " />
</frameset>
上框架为你要打开显示的页面,下框架隐藏一个文件bottom.asp
bottom.asp代码如下:
<body onUnload= "window.location.href= 'logout.asp ' ">
</body>
当bottom.asp关闭时打开logout.asp,代码如下:
<%
session.Abandon()
%>
<table width= "80% " border= "0 " align= "center " cellpadding= "0 " cellspacing= "0 ">
<tr>
<td> <div align= "center " class= "STYLE1 "> 谢谢使用本系统! </div> </td>
</tr>
</table>