Forum Discussion
annielee_5314
Nimbostratus
Jan 04, 2010maintaining persisitance between http and https sessions
I've 2 Virtual server created, HTTP and HTTPS and both pointing to the same pool on different port, 80 and 443 respectively.
My question is, how can I manintain the client going to the same server when they hit http and https.
- hoolio
Cirrostratus
You can use the match across services option for source address persistence, or an iRule like the one below for cookie persistence: - annielee_5314
Nimbostratus
im confused on the cookie irule.. do you mind elaborating on the sample given.... - hoolio
Cirrostratus
Both the HTTP and HTTPS virtual servers must have an HTTP profile. The HTTPS virtual server needs to have a client SSL profile so that LTM can decrypt the SSL and then use an HTTP profile to parse the HTTP headers. The HTTP profile can be any HTTP profile--even the default HTTP profile. These configuration options are necessary to allow LTM to insert and subsequently parse the cookie used for persistence. - annielee_5314
Nimbostratus
okie.. i've copied the entire irule and it seems to be working.. - hoolio
Cirrostratus
Good to hear it's working for you. This command in the HTTP response inserts the cookie on every response: - annielee_5314
Nimbostratus
thanks...it did work according to the tester.. 'fingers crossed' its waht they need :-)
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