Problem with timeout in classic Asp

Asked

Viewed 804 times

0

I’m having a problem that after a normal user visualizes the comparative on the chart they need, after spending a few minutes if they click the "OK" button again without having touched anything before, he can see the name of the companies on the chart, and these names have to be seen only as "Company A", "Company B". How to uncheck by clicking again on something on the page after spending time ?

2 answers

1

You can try architecting the generation of this graph using consolidated tables. This would avoid calculating every time you need to generate it.

You can stipulate a "timeout" for your script:

Server.ScriptTimeout = 300 '5 minutos.

1


Create a Session variable in the global.asa and test it every time a page is reloaded, if this button is a page redirect.

ex:

<SCRIPT LANGUAGE=VBScript RUNAT=Server>
Option Explicit
Sub Session_OnStart 
    SESSION("LOGON") =true
End Sub
</SCRIPT>

Page: if SESSION("LOGON") = false then Response.redirect "paginadedesvio.html" end if

If it is not a page redirect, you will have to test it through ajax and redirect the page depending on its response

Browser other questions tagged

You are not signed in. Login or sign up in order to post.