Forum Discussion
David_L_
Nimbostratus
Sep 10, 2007TCL IF/Else processing problem?
I'm using an iRule to manually manipulate the persistence table - adding a persistence record on login and deleting it on logout. I'm seeing a behavior I can't explain - perhaps someone here can help...
Sep 10, 2007
Are you sure that the else statement is being executed in the same request? Try adding some more logging at the entry to HTTP_REQUEST and we'll see...
when HTTP_REQUEST {
log local0. "Received HTTP Request for URI: [HTTP::uri]"
if { [HTTP::uri] contains "logout.do"} {
persist delete uie [HTTP::cookie "JSESSIONID"]
log local0. " Deleted persistence for session [HTTP::cookie "JSESSIONID"]"
} else {
persist uie [HTTP::cookie "JSESSIONID"] 1800
log local0. " Updated persistence for session [HTTP::cookie "JSESSIONID"]"
}
}Odds are there's another requests slipping in there not containing "logout.do" after your logout.do request.
-Joe
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
