Forum Discussion
Lee_Sutcliffe
Nacreous
Jul 16, 2012Session persistence - reading application set cookie
Hi, We have out-sourced some developers who have written an application in their development load balanced environment however I do not think they use F5. Now the application ...
Lee_Sutcliffe
Nacreous
Jul 16, 2012I've added the following iRule (there is existing code which directs traffic to different pools depending on the uri. To keep things simple I've removed these parts of the code)
However I get a TLC error:
TCL error: qa_xxx_rule - wrong args: should be "persist add uie | { [any [virtual|service|pool] | pool ]}" while executing "persist add uie [HTTP::cookie "AUTHTOKEN"]"
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] equals "uriString" } {
if { [HTTP::cookie exists "AUTHTOKEN"] } {
persist uie [HTTP::cookie "AUTHTOKEN"]
use pool xxx-pool
}
}
}
when HTTP_RESPONSE {
if { [HTTP::cookie exists "AUTHTOKEN"] } {
persist add uie [HTTP::cookie "AUTHTOKEN"]
}
}
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
