End an ASP session before setting a timeout

My old program uses ASP(not ASP.Net), and even if I set a long session end time, for example, to 20 minutes, sometimes in a short time (for example, after a few minutes), I still notice session expire error box -

"too much downtime, please log in again."

Any ideas for further analysis? I'm not sure if this is a mistake in my code or a problem with the server (browser), because not all combinations of clients and servers encounter this strange problem.

The session end cell 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
%>
+3
source share
4 answers

A few ideas based on your update:

  • , session("timeToken") ? - , , - ?

  • session("timeToken") ? , ? ? ?

, , , , , , , ... , .

:

  • ASP cookie - , cookie ?
  • ASP ? - , , "", .

: http://msdn.microsoft.com/en-us/library/ms972338.aspx

+1

IIS - .

:

  • IIS
  • "" → " " → ""
  • , , Create
  • "", , SESSION TIMEOUT 20 (.)

, :)

+1

, , , - . , - ( , , , , ).

, , .

, -, - ?

+1
source

Source: https://habr.com/ru/post/1709757/


All Articles