Problem with timeout in classic asp [closed]

0

I have a problem that after a normal user sees the comparative on the chart you need, after a few minutes if he clicks the "OK" button again without having moved anything before, he can see the companies name on the chart, these names have to be seen only as "Company A", "Company B". How do I shuffle when clicking something on the page after a while?

    
asked by anonymous 08.07.2015 / 14:42

2 answers

1

Create a Session variable in 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's not a page redirect, you'll have to test it through ajax and redirect the page depending on your response

    
22.07.2015 / 16:49
1

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

You can set a timeout for your script:

Server.ScriptTimeout = 300 '5 minutos.
    
19.08.2015 / 15:03