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文章
其他文章:
清除浏览器历史记录

本文提供了一段用于清除浏览器历史记录的JavaScript代码,该方法适用于用户登出时清除浏览器缓存和历史浏览记录,确保信息安全。此外,还介绍了如何设置HTTP响应头来避免页面被缓存。
610

被折叠的 条评论
为什么被折叠?



