首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

asp 网页直接关闭=会员登录以后注销解决方案

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

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>

热点排行