Forum Discussion
Eric_Weiss_2486
Nimbostratus
Feb 14, 2016Can you wildcard cookie name with HTTP::cookie?
Can the cookie name in HTTP::cookie be wildcarded, like so?
when HTTP_REQUEST {
Check for SSO Cookie
if { ( ! [HTTP::cookie exists "*.test"] ) } {
reject
}
}
Thanks,
Eric ...
Eric_Weiss_2486
Nimbostratus
Feb 15, 2016Thank you very much, zeiss and Kai. Would this be the correct reverse on the above then?
foreach cookie_name [HTTP::cookie names] { if { $cookie_name ! contains ".test" } then { reject break } }
... or even using the [cookie names] list as a whole...
if { ! [HTTP::cookie names] contains ".test" } then { reject }
Kai_Wilke
MVP
Feb 15, 2016I'd prefer "if { not ( [HTTP::cookie names] contains ".test" ) } then { reject }"
Cheers, Kai
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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