Andrea_Arquint
Oct 20, 2010Nimbostratus
cookie insertion
Hi
How can I set a cookie in the clients browser if he makes a request to a specific /folder/ ???
thanx
bb
Try this:
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] contains "/folder" } {
set cinsert 1
} else { set cinsert 0 }}
when HTTP_RESPONSE {
if { $cinsert eq 1 } {
HTTP::cookie insert "name" value "value" path / }}