asp清除浏览器历史记录代码

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.

<%
Response.Buffer = True
Response.ExpiresAbsolute = Now() - 1
Response.Expires = 0
Response.CacheControl = "no-cache"
%>
fromASP文章

其他文章:

ASP 编程中20个非常有用的例子[转]

在ASP中调用dll

软件构件技术在MIS开发中的应用

利用XML穿越防火墙

WINDOWS程式设计--动态链接库(2)

Hooks(钩子)监听消息的方法

aspjpeg组件高级使用方法介绍

海量数据库的查询优化及分页算法方案

你可能感兴趣的:(编程,算法,浏览器,防火墙,asp)