Forum Discussion
Much appreciated neeeewbie, will test it and let you know! By the way, we have created an irule that removes all browser cookies after a specific time interval to address the timeout issue. it's working fine with us :)
when HTTP_REQUEST {
set now [clock seconds]
if { [HTTP::cookie exists lastrequesttimestamp] } {
set lastrequesttimestamp [HTTP::cookie value lastrequesttimestamp]
} else {
set lastrequesttimestamp $now
}
set cookieNames [HTTP::cookie names]
}
when HTTP_RESPONSE {
set threshold [expr {20}]
set lastRequestPlusThreshold [expr {$threshold + $lastrequesttimestamp}]
if { $lastRequestPlusThreshold < $now } {
foreach aCookie $cookieNames {
HTTP::cookie insert name $aCookie value bb
HTTP::cookie expires $aCookie 1
}
} else {
HTTP::cookie insert name "lastrequesttimestamp" value $now path "/"
HTTP::cookie attribute "lastrequesttimestamp" insert "SameSite" "None"
HTTP::cookie secure "lastrequesttimestamp" enable
}
}