X-LIGHTTPD-SID

smiley smileyrecords.tk at gmail.com
Sat Jun 23 20:18:59 MSD 2007


On Sat, 23 Jun 2007 17:12:14 +0100, Evan Miller <emmiller+gmane at gmail.com>  
wrote:

> 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
>
>

thanks Evan for fast reply! im gonna run some tests now then make an  
article on a blog or on the nginx wiki detailing the setup, might come in  
usefull for someone else





More information about the nginx mailing list