Click to See Complete Forum and Search --> : logging user info


jrthor2
08-08-2005, 09:40 AM
Is there a way using asp to capture the users browser, browser version, OS, screen size and then write this data to a file and then redirect them to a page? Could someone show me how to do this?

lmf232s
08-08-2005, 01:37 PM
http://neural.cs.nthu.edu.tw/jang/sandbox/asp/examples/request5.asp

Here is a list of server variables that will help you get a couple of them.
You get these just like this
Response.Write Request.serverVariables("HTTP_USER_AGENT")

This will give you the browser.
To get the screen size youll have to use javascript, i dont think you can get it with asp and for the OS im not sure. I would assume javascript could get this but maybe you cant.

jrthor2
08-08-2005, 01:46 PM
and what about writing this data to a file?

lmf232s
08-08-2005, 01:48 PM
do you want to write it to a file or to a DB?

lmf232s
08-08-2005, 01:50 PM
http://www.4guysfromrolla.com/webtech/040699-1.shtml

There is an example on how to use FSO to read and write to a text file.