Forum Discussion
Chris_Miller
Dec 13, 2010Altostratus
I'll offer this up as an option, but haven't dealt with this situation so can't say it's the right way to go.
when HTTP_REQUEST {
set req_uri [HTTP::uri]
log local0. "Referer was $req_uri" }
when HTTP_RESPONSE {
HTTP::cookie insert "real_referer" "$req_uri"
log local0. "inserted real_referer cookie with value $req_uri" }
When a user hits the login page, they should have a cookie called "real_referer" whose value is their previous HTTP request. I've also put log statements in both events which should help troubleshoot. That cookie will be overwritten each time they hit a different page but when the login page is requested, the value should be of the previous request.
Let me know how that works for you and we can tweak it accordingly.