Forum Discussion
LoveNoodles
Altocumulus
Sep 01, 2009irule - persistance for url path
Hi There;
What would be the syntax to create an irule to apply source address persistance for a particular URL path, specifying a specific timeout setting in the process.
...
LoveNoodles
Altocumulus
Sep 10, 2009Hi Hoolio,
It appears that under the same TCP connection, when browsing to a non /apps/aml path under the same virtual server, the cookie perisistance is till beign used, and vice versa, when browsing to an /apps/aml path under the same TCP connection under the ame virtual server, source address persistance is being used.
How can i amend the following you sent in your earlier reply to use cookie persistance for path /apps/aml and default source address persistence.
Or having the virtual server set to cookie will adhere to the section before "default" and therefore the code below does not need to be amended?
when HTTP_REQUEST {
Check if there is an existing UIE persistence record
if {[persist lookup uie "[IP::client_addr]_apps"] ne ""}{
Use the existing UIE persistence record regardless of which URI was requested
persist uie "[IP::client_addr]_apps"] 36000
} else {
Check requested path
switch -glob [HTTP::path] {
"/apps/aml/*" {
Persist client for 10 hours using client IP _ apps
persist uie "[IP::client_addr]_apps" 36000
}
default {
Persist client for 1 hour
persist source_addr 3600
}
}
}
}
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