NYCPHP Meetup

NYPHP.org

[nycphp-talk] PHP session id's in access logs

Winston Churchill-Joell winston at xylophage.com
Wed Jul 2 13:43:20 EDT 2003


Hi Andrew,

Yes, we are using 2.0 -- thanks for the code snippet and for pointing 
me in the right direction!

Best,
Winston

On Wednesday, July 2, 2003, at 01:26  PM, Andrew Yochum wrote:

> On Wed, Jul 02, 2003 at 01:12:22PM -0400, Andrew Yochum wrote:
> [...]
>> Are you trying to log that session ID if using cookie-based sessions?
>>
>> Here's an example from my httpd.conf file for the log format that 
>> includes
>> cookies:
>>         LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" 
>> \"%{User-Agent}i\" \"%{Cookie}i\"" combinedcookie
>> ...which simply adds \"%{Cookie}i\" to log the stock combined log 
>> format.
>> You'll get all cookies stored by your site, but at least you have the 
>> session
>> ID there for use.
>>
>> Andrew
>
> I should also mention that if you're using Apache 2.0, you can log a 
> specific
> cookie value with %{cookiename}C ... See:
>     http://httpd.apache.org/docs-2.0/mod/mod_log_config.html#formats
>
> Andrew
>
> -- 
> Andrew Yochum
> Digital Pulp, Inc.
> 212.679.0676x255
> andrew at digitalpulp.com
> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org
> http://lists.nyphp.org/mailman/listinfo/talk
>




More information about the talk mailing list