| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 523 人关注过本帖
标题:我把Session.Timeout = 1,为什么过了很久了,Session还存在?但过20分钟就 ...
取消只看楼主 加入收藏
wang7dao
Rank: 1
等 级:新手上路
帖 子:10
专家分:0
注 册:2011-8-4
结帖率:66.67%
收藏
已结贴  问题点数:10 回复次数:0 
我把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">&nbsp;</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>&nbsp;</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
%>
搜索更多相关主题的帖子: title import include content function 
2011-08-04 16:41
快速回复:我把Session.Timeout = 1,为什么过了很久了,Session还存在?但过20分 ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.035086 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved