Forum Discussion
hooleylist
Feb 09, 2011Cirrostratus
Hi TRX,
Using a global variable ($::cookies) probably isn't what you want in this scenario as a global variable is shared across all connections. If you change $::cookies and $::cookie to $cookies and $::cookie to $cookie, the rule should work fine. You can also eliminate the intermediate variable, $cookies to save a little memory:
when HTTP_REQUEST {
Loop through each cookie by name
foreach cookie [HTTP::cookie names] {
Log the cookie name and value
log local0. "Cookie name: $cookie, Cookie value: [HTTP::cookie value $cookie]"
}
}
Aaron