Forum Discussion
Susan_Cahill_82
Nimbostratus
Jul 20, 2006Cookie Insert Persistance - Same V Server, different Service
I need to create an IRule that will do a cookie insert and I can't use other cookie persistant functions.
There are two different services set up (443 & 80) for the same virtual server, a user may start on port 80 and then be redirected to port 443, I need the persistant cookie to be retained from port 80 to port 443. Has anyone done anything like this?
- hoolio
Cirrostratus
I'm thinking you could define the nodes on port any (0) and then use the standard cookie insert persistence profile, but I haven't tested this. - Susan_Cahill_82
Nimbostratus
The nodes aren't where the port is defined, our configuration defines that at the Virtual Server level. - hoolio
Cirrostratus
If the VIPs are configured on the same IP address (and domain), you could define the nodes on port 0 and use the same pool for both VIPs. Then configure cookie insert persistence on both VIPs. - Susan_Cahill_82
Nimbostratus
Unfortunately, can't define the node to port 80 since we're using the Big-IP for SSL termination. - hoolio
Cirrostratus
If you define the port on a single pool to 0 and disable address translation, the connection to the pool will be made using the same destination port as the VIP. So if you have two pools currently: one on port 443 and the other on port 80, you could replace them with a single pool on port 0. The persistence record added to the cookie will then be valid for both VIPs. - Susan_Cahill_82
Nimbostratus
Hi, - hoolio
Cirrostratus
Thanks for the clarification. I think this is your current configuration: - Susan_Cahill_82
Nimbostratus
The request initally hits the VIP:80 and then is redirected with the IRule, but a cookie gets passed back from the first request on port 80. The cookie does not get persisted and the user gets a message: - hoolio
Cirrostratus
It sounds like the web app requires statefulness between HTTP and HTTPS requests. I'm also guessing that the issue isn't with the BIG-IP's persistence cookie, but the web app's. - Susan_Cahill_82
Nimbostratus
Here's the answers to your questions:
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