Forum Discussion
Gus_Thompson_11
Nimbostratus
Aug 13, 2007iRule - HTTP Response (Trigger)?
Currently we have Cookie (HASH) Persistence enabled on all our websites, and persistence between services is being kept correctly.
Our dilemma is how the F5 handles the cookies, this may or may not be possible, but we’ve noticed that the F5 reads the cookie on the “Request” or after you have landed on the site and clicked on a link.
We need to have the cookie read on the “Response” or when the client initially lands on the page.
The reason for this request is that we are doing an email campaign, and with in this email, there is a URL that the customer will click on. This URL contains and embedded serial number that is passed to the web server.
URL Example: http://www.ecommsite1.com/pagebuilder/Item?item=48064&source=940948
Our issue is that when they land on the page, the serial number is passed correctly to (server1) the web server, but when the customer clicks on any link, they are redirected to another web server (server2) and that server has no clue about the serial number that was entered. Persistence is not working as expected.
Please let me know if you need more information.
Thanks in advance for your help!
Gus
- Deb_Allen_18Historic F5 AccountHi Gus -
- Gus_Thompson_11
Nimbostratus
Thanks for the reply Deb, - hoolio
Cirrostratus
For some reason, F5 removed the 'match across' functionality for cookie persistence. I think there is a CR requesting to have it added back. You might request to have your case attached to the request if it hasn't been already.when CLIENT_ACCEPTED { switch [TCP::local_port] { 80 { need to disable client SSL for HTTP requests SSL::disable } 443 { do nothing, request will be decrypted and sent to pool } default { drop or reject the request as it's not an allowed port reject } } }
- JRahm
Admin
My understanding is that it was removed because they were invalid options since the persistence was passive due to the persistent data was contained in the cookie instead of in a table...is this not the case? - Gus_Thompson_11
Nimbostratus
Hey Aaron,01070151:3: Rule [ST-lbc.TEST1] error: line 1: [unknown event (CLIENT_CONNECTED)] [when CLIENT_CONNECTED { switch [TCP::local_port] { 80 { need to disable client SSL for HTTP requests SSL::disable } 443 { do nothing, request will be decrypted and sent to pool } default { drop or reject the request as it's not an allowed port reject } } }]
- hoolio
Cirrostratus
Sorry, the event should be CLIENT_ACCEPTED, not connected...
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