Forum Discussion
Mike_Roe_60070
Dec 22, 2010Nimbostratus
Well I modified this a little and got the logs to at least lie to me and tell me its working. Here is what I have done:
when HTTP_REQUEST {
set req_uri [HTTP::header value referer]
log local0. "Referer was $req_uri"
}
when HTTP_RESPONSE {
HTTP::cookie insert name "real_referer" value "$req_uri"
log local0. "inserted real_referer cookie with value $req_uri"
}
The logs read:
Dec 22 10:25:45 local/tmm1 info tmm1[4959]: Rule referer-irule : Referer was http://www-test.winwholesale.com/
Dec 22 10:25:45 local/tmm info tmm[4958]: Rule referer-irule : Referer was http://www-test.winwholesale.com/
Dec 22 10:25:45 local/tmm info tmm[4958]: Rule referer-irule : inserted real_referer cookie with value http://www-test.winwholesale.com/
Dec 22 10:25:45 local/tmm info tmm[4958]: Rule referer-irule : Referer was
Im not too sure what is going on in the inner workings of the access policy but, i see an additionallog entry at the end that has a null value for $req_uri.
All said the value I need the login page to see is what is showing up in the logs so the variable is correst. I am not sure why the cookie never gets added though. Thoughts?