Forum Discussion
jeff_mccombs_47
Nimbostratus
Jun 10, 2009HTTP::cookie exists v.s. [string length[HTTP::cookie NAME]] ?
So I'm playing around with universal persistence, as we have a new project getting ready to roll out that is pretty heavy with ajax/dwr. I was thinking on using the universal persistence mode against ...
hoolio
Cirrostratus
Jun 15, 2009Hi jsmccombs,
Can you post the actual full rule you were testing and the version you were testing on? I tried the following on 9.3.1, 9.4.7, 10.0.0 and didn't see the issue you're describing:
log local0. "path: [HTTP::path]"
log local0. "\[HTTP::header value Cookie\]: [HTTP::header value Cookie]"
log local0. "\[HTTP::cookie exists JSESSIONID\]: [HTTP::cookie exists JSESSIONID]"
log local0. "\[string length \[HTTP::cookie JSESSIONID\]\]: [string length [HTTP::cookie JSESSIONID]]"
}
: path: /no_JSESSIONID_cookie
: [HTTP::header value Cookie]:
: [HTTP::cookie exists JSESSIONID]: 0
: [string length [HTTP::cookie JSESSIONID]]: 0
: path: /JSESSIONID_cookie_without_a_value
: [HTTP::header value Cookie]: JSESSIONID=
: [HTTP::cookie exists JSESSIONID]: 0
: [string length [HTTP::cookie JSESSIONID]]: 0
: path: /JSESSIONID_cookie_with_a_value
: [HTTP::header value Cookie]: JSESSIONID=test
: [HTTP::cookie exists JSESSIONID]: 1
: [string length [HTTP::cookie JSESSIONID]]: 4
It looks like in 10.0.0, the bug where [HTTP::cookie exists "cookie_name"] returns zero with a cookie with no value (JSESSIONID=) was fixed.
Aaron
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