Forum Discussion
User's session timeout and concurrent session (Layer 7) using F5 LTM
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
}
}
Recent Discussions
Related Content
* 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