X-LIGHTTPD-SID

Evan Miller emmiller+gmane at gmail.com
Sat Jun 23 20:12:14 MSD 2007


smiley <smileyrecords.tk at ...> writes:

> so therefore this script would send a test 10MB file to the client and the  
> session_id would be logged into the access-log
> 
> this is an incredibly usefull feature as the logs can be parsed later to  
> deduce how much bandwidth was used per session!
> 


Try a variation on this:

    log_format my_log_format "$bytes_sent $upstream_http_x_session_id"
    access_log /somewhere/access.log my_log_format

Then send the header from the PHP script as "X-Session-ID". Use
proxy_hide_header if you wish to suppress X-Session-ID from the client.

Evan






More information about the nginx mailing list