Forum Discussion
Brad_Parker
Cirrus
Could be as simple as this. The request is http://your.domain.name/your/path?param1=this¶m2=that. The user would get session cookies param1CookieName=this and param2CookieName=that
when HTTP_REQUEST {
set param1Cookie [URI::query [string tolower [HTTP::uri]] param1]
set param2Cookie [URI::query [string tolower [HTTP::uri]] param2]
}
when HTTP_RESPONSE {
if {$param1Cookie ne ""}{
HTTP::cookie insert name param1CookieName value $param1Cookie
}
if {$param2Cookie ne ""}{
HTTP::cookie insert name param2CookieName value $param2Cookie
}
}
Joern_Oltmann
Mar 08, 2016Nimbostratus
Looks cool, I will try it.
Thx a lot.