设置超时前的ASP会话到期(ASP session expiration before timeout setting)

时间:2021-01-09 23:25:56   收藏:0   阅读:36

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
%>

基于您的更新的一些想法:




    1. 还有其他原因导致您的 session(" timeToken")为空?


    1. session(" timeToken")<的实际值如何? / code>更改您的代码?会话开始时是否已设置?是否定期更新?它存储什么值?




您编写的代码似乎不错,因此如果不是代码问题,这可能是一个真正的会话问题...只是一些需要首先检查的事情。



更新:





原文:https://www.cnblogs.com/huadian/p/14256888.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!