我把Session.Timeout = 1,为什么过了很久了,Session还存在?但过20分钟就失效了。
<!--#include file="islogin.asp"--><!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<style type="text/css">
<!--
@import url("../style/admin.css");
-->
</style>
</head>
<SCRIPT language=javascript1.2>
function showsubmenu(sid)
{
whichEl = eval("submenu" + sid);
if (whichEl.style.display == "none")
{
eval("submenu" + sid + ".style.display=\"\";");
}
else
{
eval("submenu" + sid + ".style.display=\"none\";");
}
}
</SCRIPT>
<%
Session.Timeout = 1
h=hour(now)
if h=<19 and h>=17 then
%>
<script language=javascript>
<!--
function closing()
{
alert("下班相互提醒:\n\n1.关电脑 \n\n2.关空调 \n\n3.整理台面。下班愉快!~");
window.close
}
/-->
</script>
<script>
function window.onbeforeunload(){
with(window.event)if(clientY<0&&clientX>document.body.clientWidth||altKey)closing()
}
</script>
<%
end if
%>
<body>
<table width="150" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" class=menu_title id=menuTitle1 onclick=showsubmenu(1) onMouseOver="this.className='menu_title1';" onMouseOut="this.className='menu_title';">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25" background="../Images/geren.jpg"> </td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="top" id=submenu1>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25" background="../images/tb_bg_z.jpg">
<table width="95%" border="0" align="center" cellpadding="3" cellspacing="3">
<tr>
<td width="12%"><img src="../images/c.gif" width="12" height="12"></td>
<td width="88%"><a href="MemberData.asp" target="right">我的信息</a></td>
</tr>
<tr>
<td width="12%"><img src="../images/r.gif" width="12" height="12"></td>
<td><a href="Report.asp" target="right">今日记事</a></td>
</tr>
<!-- <tr>
<td width="12%"><img src="../images/r.gif" width="12" height="12"></td>
<td><a href="ReportForAdmin.asp" target="right">员工日报表</a></td>
</tr>-->
<tr>
<td> </td>
<td><a href="out.asp" target="_self">安全退出</a></td>
</tr>
</table></td>
</tr>
------------------------------------------
islogin.asp文件代码:
<%
if session("Member")="" then
response.redirect "Login.asp"
end if
%>