Forum Moderators: open

Message Too Old, No Replies

Cookie on first request

need to track entry page

         

webdevsf

5:18 am on Jul 2, 2003 (gmt 0)

10+ Year Member



I need to track an entry page, but the unique session cookie I write is not in logfile until 2nd page. This means that my logfile analysis can't really find the entry page.

For right now, I end up doing my own custom logging, and using that. But I'd prefer to find an ISAPI that will set the cookie automagically and also log it on the first page.

Anyone know of such a beast?

korkus2000

12:24 pm on Jul 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you tried logging through the global.asa?

chris_f

1:21 pm on Jul 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Korkus is correct. Global.asa will do the trick. Put it in Session_OnStart.

Chris

webdevsf

3:05 pm on Jul 2, 2003 (gmt 0)

10+ Year Member



That's a good idea, but i don't have sessions enabled because they use up too much memory.

netcommr

3:15 pm on Jul 2, 2003 (gmt 0)

10+ Year Member



why no just store a code for the first page in the cookie, then on the second hit retrieve the page value and reset the cookie without this variable, IE: if page_value exsist ¦¦ session_found, don't store page_value in cookie.

korkus2000

3:18 pm on Jul 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Can't you just test for the cookie on every hit and set it if it isn't there?

webdevsf

3:56 pm on Jul 2, 2003 (gmt 0)

10+ Year Member



netcommr - interesting idea, it'd work.

korkus2000 - the reason why setting a cookie doesn't work on the first page is that it isn't logged until the 2nd page.

I'm using a custom logging tool right now to do this, which essentially keeps a separate logfile and logs the first page manually. Problem is i have to have an include on every page to make this work.

netcommr

7:06 am on Jul 5, 2003 (gmt 0)

10+ Year Member




If you are using the Apache web server, have you looked into this?

mod_usertrack [httpd.apache.org]