Welcome to WebmasterWorld Guest from 54.162.239.134

Forum Moderators: DixonJones & mademetop

Message Too Old, No Replies

Logging screen resolution

Without JS

     
1:36 pm on Jul 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I always thought access logs did not save that kind of data. Now I know that you can find out a users screen resolution through a bit of JavaScript and then configure your web server to log that, but does any web server (IIS, Apache, whatever) log this without JS?
2:19 pm on Jul 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



sinner_g,

in my knowledge it is not possible to do so, because the webserver only delivers data to the browser and can only log the query (url, and head data of the http request).

for this, the data of the screen resolution could only be delivered and then logged by the server if the browser (or a script in the browser) will put it into the request.

a workaround could be a session based solution with some other stuff like java or flash but i don't think that's what you meant.

- hakre

2:22 pm on Jul 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thought so. I was asking mainly because I saw some log analysis tools said they could do it, but I guess it's only those that add some code to your files.

Thanks
Sinner

2:52 pm on Jul 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



well you could write it into cookis using JS.

Perhaps those logging software use cookies to track sessions. Then it'd be trivial to ad resolution info via JS.

The usual applies, no JS, no log, NO cookies, no log and so on...

SN

3:01 pm on Jul 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



thats exactly what i meant: cookies can be part of the head data in a http request. only if this is supplied, the server can log (like the refferer some browser supply).
12:43 am on Aug 17, 2003 (gmt 0)

10+ Year Member



Please take a look at
[sawmill.net...]
I found it yesterday, so I did not practice it yet.
11:00 am on Aug 18, 2003 (gmt 0)

10+ Year Member



Antavre!

... bloody brilliant... pulled the script... pasted it into a page... works like a charm!

Thank you for sharing... it is all there, the only trouble is where :)

Thanks,
Max

 

Featured Threads

Hot Threads This Week

Hot Threads This Month