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
when HTTP_REQUEST {
set uagent [string tolower [HTTP::header User-Agent]]
switch -glob [HTTP::host] {
www.testdom.com {
if { [HTTP::uri] starts_with "/test" } {
HTTP::cookie insert name "ClassicView" value "mobile" path /
} else {
log local0. "no cookie set"
}
}
unset uagent
}
But the cookie is not set ???