当前位置: 首页 > 图文教程 > 网络编程 > ASP > 清除浏览器历史记录代码

ASP
关于释放session的两篇文章(一)
关于释放session的两篇文章(二)
表单填写时用回车代替TAB的实现方式
DateDiff的用法
加快DHTML的一组技巧
全面考察“禁用浏览器后退按钮”
XML加ASP实现网页“本地化”
透过ASP修改NT使用者的密码
方便购买的电子商务站点设计技巧
使用ASPMail组件发送数字卡片
聊天室关键技术[用户断线]处理
生成类似Windows资源管理器
如何将代码生成的文件设为只读
ASP中巧用存储过程
拦截表单的另外一种写法
ASP实现OICQ式的信息收发功能
怎样用HtmlEncode显示Unicode?
ASP出错集成处理
ASP.NET中处理datetime的一些通用函数
ASP.NET实现HTTP方式获取功能

ASP 中的 清除浏览器历史记录代码


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-03   浏览: 44 ::
收藏到网摘: n/a

  Code to clear browser history

/* This logout.asp is used to clear the back pages of the browser,
/* if the user has logged out.
/* if there are no specific vbscripting to be done then you can
/* use this file as logout.htm

<%
/* Clear all your sessions over here and do other
/* desired things
%>

<SCRIPT LANGUAGE=javascript>
{
var Backlen=history.length;
history.go(-Backlen);
top.window.location.href ="../esadmin/administer.asp";
}
</SCRIPT>


/* here the "../esadmin/administer.asp" page is the
/* desired page to be displayed after the user logs out

To use the code above, click and drag your mouse over the code to highlight it.   Then right click on the
highlighted code and click "Copy."   Now you may paste it into your code editor.