Hello,
I have user cookies implemented for my website (even on first requests), but we want to be able to log requests that don't include php code. For example, if I want to serve a .gif,.jpg, or .exe file over http, it would be great if I could tell apache to serve/log a cookie (through a php script) for that request in addition to the requests for .php files. Essentially, I'd be creating a script to have apache run when there is a request for any file on the webserver.
Anyone know how to do this? Since people will be hitting these files without requesting a php file directly, it is very important that I log the cookie I am serving if they are not already cookied. Of course, this is just to track user data so we can be more precise than using IP's as unique visitors.
Please post if you have any insight.
Thanks,
Steve