Webservice reading session variables

  • Thread starter Thread starter Francis
  • Start date Start date
F

Francis

Hello,

I am trying to build a webapplication in ASP, vbscript,
that keeps a logfile (database) with the exact time and
page of the visit by a registered user. Is it possible to
build a running application on the server that records
the users actions? can I do this by using session
variables and reading them with a webservice that keeps
running?
 
Hi Francis,
I am trying to build a webapplication in ASP, vbscript,
that keeps a logfile (database) with the exact time and
page of the visit by a registered user. Is it possible to
build a running application on the server that records
the users actions? can I do this by using session
variables and reading them with a webservice that keeps
running?

That is quiet easy in ASP vbscript, you have the possibilities to do that
with databases using ODBC or with a normal text file with something like
this in VB script

\\\
Set params = Request.ServerVariables
Set fso = CreateObject("Scripting.FileSystemObject")
Set tf = fso.OpenTextFile("c:\logfiles\log.txt", 8, 1)
tf.WriteLine ( params("REMOTE_ADDR") & "," & params
_("HTTP_ACCEPT_LANGUAGE") _
& "," & date() & "," & Time() )
tf.Close
set fso = nothing
set params = nothing
set tf = nothing
///

But this is not a VB script group but VB.Net language, that has to deal with
ASPX.vb.

Maybe the next time you ask this questions in a VB scripting group, I think
they have more solutions.

I hope this did help you in advance?

Cor
 
Back
Top