Some of my legacy program is using ASP (not ASP.Net), and even if I set long session expire time, for example to 20 minutes, sometimes in short time (e.g. in several minutes) I will still notice session expire error box –
"too much idle time, please login again."
Any ideas to analyze further? Not sure whether it is my code bug or server (browser) configuration issue, since not all client/server combinations are met with this strange issue.
The session expire box is triggered by my code:
<%
if session("timeToken") = "" then
%>
<script language = "JavaScript">
<!--
window.alert ("too much idle time, please login again");
//-->
</script>
<%
response.End()
end if
%>
基于您的更新的一些想法:
还有其他原因导致您的 session(" timeToken")为空?
session(" timeToken")<的实际值如何? / code>更改您的代码?会话开始时是否已设置?是否定期更新?它存储什么值?
您编写的代码似乎不错,因此如果不是代码问题,这可能是一个真正的会话问题...只是一些需要首先检查的事情。
更新:
设置超时前的ASP会话到期(ASP session expiration before timeout setting)
原文:https://www.cnblogs.com/huadian/p/14256888.html