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.
6 Replies
- hoolio
Cirrostratus
You can use the match across services option for source address persistence, or an iRule like the one below for cookie persistence:
SOL5837: Match Across options for session persistence
https://support.f5.com/kb/en-us/solutions/public/5000/800/sol5837.html
Cookie encryption across pools and services
http://devcentral.f5.com/wiki/default.aspx/iRules/Cookie_Encryption_across_pools_and_services.html
Aaron - annielee_5314
Nimbostratus
im confused on the cookie irule.. do you mind elaborating on the sample given....
coz one of the clause it says " All virtual servers must have an HTTP profile and a default pool"
what http profile is this referring to ? - 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.
Aaron - annielee_5314
Nimbostratus
okie.. i've copied the entire irule and it seems to be working..
but does the irule mention that it will create a cookie, if it's found different or non-existance ?
im not a programmer..dun really know how to interpret the irule :-) - hoolio
Cirrostratus
Good to hear it's working for you. This command in the HTTP response inserts the cookie on every response:
HTTP::cookie insert name "BIGIP_COOKIE" value [IP::remote_addr] path /
Aaron - 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
