Forum Discussion
MattC_58842
Nimbostratus
Dec 08, 2011Persistance in a I-rule
So I have this I-rule
when HTTP_REQUEST {
set uri [HTTP::uri]
switch $uri {
"/" { HTTP::redirect "https://[HTTP::host]/tf/WalletShare" }
"/tf/WalletShareREIT" { pool wdc...
hoolio
Cirrostratus
Dec 08, 2011Hi Matt,
You could check for a cookie in HTTP_REQUEST indicating a pool selection had already been made. If no cookie was found in the request, you could set a cookie using HTTP::cookie insert with the name of the pool to use in HTTP_RESPONSE. You'd want to validate that the cookie name was either 5001 or 5002 to prevent someone from accessing an arbitrary pool.
I can whip up an example in a bit.
Aaron
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
