Forum Discussion
Andrea_Arquint
Nimbostratus
Oct 20, 2010cookie insertion
Hi
How can I set a cookie in the clients browser if he makes a request to a specific /folder/ ???
thanx
bb
Andrea_Arquint
Nimbostratus
Oct 20, 2010I do the same you explained...
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 ???
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects