asp Timer

M

Mike

Hi,

I need help writing a script that checks to see how long an asp application has been active on the server. The basic logic is - If the timer and application exceed 60 minutes then refresh the application and start over.

The reasoning behind this is that I am pulling in a header navigation using the following.

Set objHTTP = Server.CreateObject("Microsoft.XMLHTTP")
objHTTP.Open "GET", "header navigation reference here", false
objHTTP.Send
Response.Write objHTTP.ResponseText

So far here is what I have:

Sub Application_OnStart
Dim objHTTP
Set objHTTP = Server.CreateObject("Microsoft.XMLHTTP")
objHTTP.Open "GET", "https://www.getlower.com/cobrand_cic.aspx", false
objHTTP.Send
Response.Write objHTTP.ResponseText
End Sub
Thanks for any input you may have.

Mike
 
E

Evertjan.

Mike wrote on 03 dec 2004 in microsoft.public.inetserver.asp.general:
I need help writing a script that checks to see how long an asp
application has been active on the server. The basic logic is - If the
timer and application exceed 60 minutes then refresh the application
and start over.

That doesn't mean a thing to me!

What is "active on the server", a session?

What is an "asp application" in this sense,
a requested page or also a session?

Is that timer script an ASP script you are talking about?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
474,162
Messages
2,570,896
Members
47,434
Latest member
TobiasLoan

Latest Threads

Top