By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,442 Members | 1,316 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,442 IT Pros & Developers. It's quick & easy.

Webservice reading session variables

P: n/a
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?
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Cor
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
Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.