BOTDEFENSE::cookie_age¶
Description¶
Returns the age of the Bot Defense cookie in seconds. This is only
relevant if the value of BOTDEFENSE::cookie_status is either “valid”
or “expired”; otherwise, -1 is returned.
Syntax
BOTDEFENSE::cookie_age
Warning
Deprecated in BIG-IP Next v20.0.1
Return Value¶
Returns the age of the Bot Defense cookie in seconds, or -1 if not
applicable.
Valid During¶
BOTDEFENSE_REQUEST, BOTDEFENSE_ACTION
Examples¶
# EXAMPLE: In case of an expired cookie, log the age of the cookie
when BOTDEFENSE_REQUEST {
if {[BOTDEFENSE::cookie_status] eq "expired"} {
set log "expired botdefense cookie (from [BOTDEFENSE::cookie_age]"
append log " seconds ago) from IP [IP::client_addr]"
HSL::send $hsl $log
}
}
Change Log¶
- Introduced: BIGIP-12.1
- Deprecated: BIGIP-20.0.1
The BIG-IP API Reference documentation contains community-contributed content. F5 does not monitor or control community code contributions. We make no guarantees or warranties regarding the available code, and it may contain errors, defects, bugs, inaccuracies, or security vulnerabilities. Your access to and use of any code available in the BIG-IP API reference guides is solely at your own risk.