Forum Discussion
Joern_Oltmann
Apr 11, 2016Nimbostratus
If anyone interested, I found the solution:
when HTTP_REQUEST {
set param_domain [domain [HTTP::host] 2]
set param_wlw_comid [URI::query [string tolower [HTTP::uri]] comid]
set param_wlw_cusid [URI::query [string tolower [HTTP::uri]] cusid]
}
when HTTP_RESPONSE {
if { ($param_wlw_comid ne "") and ($param_domain ne "") }{
HTTP::cookie insert name wlw_comid value $param_wlw_comid path "/" domain $param_domain
HTTP::cookie expires wlw_comid 31557600
}
if { $param_wlw_cusid ne "" and ($param_domain ne "") }{
HTTP::cookie insert name wlw_cusid value $param_wlw_cusid path "/" domain $param_domain
HTTP::cookie expires wlw_cusid 31557600
}
}