Forum Discussion
Kai_Wilke
Apr 03, 2019MVP
Hi Marvin,
you could read the Cookie-Header of the logout request, URI encode the entire cookie header value and append it to the existing
[HTTP::uri]
of the logout request.
when ACCESS_ACL_ALLOWED {
if { [HTTP::path] equals "/logmeout" } then {
log local0. "logout requested from IP \"[IP::client_addr]\" URI \"[HTTP::uri]\" query \"[HTTP::query]\" cookies \"[HTTP::header value "Cookie"]\""
ACCESS::session remove
ACCESS::respond 307 Location "HTTPS://myredirectwebsite/?[join "[HTTP::query] cookies=[URI::encode [HTTP::header value "Cookie"]] referer=[URI::encode [HTTP::header value "Referer"]]" "&" ]"
}
}
Cheers, Kai