Forum Discussion
boneyard
MVP
Nov 05, 2013ACCESS::session remove not working as expected
im trying to invalidate an active APM session by using ACCESS::session remove from the HTTP_REQUEST event. only that specific request is still going through. if i refresh afterwards it fails and redi...
Juerg_Wiesmann
Nimbostratus
Aug 27, 2015I try to wait with the redirect till the session is removed using the while /after combination. That does the job most of the time.
when HTTP_REQUEST {
if { [HTTP::uri] equals "/test" } {
ACCESS::session remove
set x [ACCESS::session sid]
while {[ACCESS::session exists $x]} {
after 1000
HTTP::redirect "/test2"
}
}
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