Forum Discussion
Aaron_33366
Nimbostratus
Mar 14, 2011Wildcard cookie
Hello. I have migrated my config from a Cisco CSS to an F5 LTM and have run into a problem. One the CSS I was able to have a cookie that was use for all parts of the domain. I was able to set the option called "cookie-domain" on the Cisco CSS and that could would work for all subdomains. Below is a link to that info on Cisco's site.
http://www.cisco.com/en/US/docs/app...wp1178181
I have been looking for this option on the F5 but have not been able to find it. I have look under the persistence profile and creating a new one however I dont see that option for a cookie-domain or anything like a wild card cookie. I am assuming that I might have to do this in an iRule or that the option I need to set is not in the persistence profile are of the GUI and that I might have to make this modification via the CLI with the bigpip command. I currently have a F5 ticket open for this but havent gotten far with it so I thought I would post this question out in the wild and see what I could find.
The key is that if a user goes to site1.domain.com or site2.domain.com or site3.domain.com I need that user to stay stuck/persisted to the same server they were load balanced to. These sites all need to have their own virtual servers because they have SSL so they all need their own IP address.
Below is a link that I found that that shows how to do this in PHP and a snippet from the page. However I need to do this on the F5 and I need to be able to set the value of the cookie to the pool member the user was load balanced to.
http://www.webdeveloper.com/forum/showthread.php?t=198526
PHP Code:
setcookie('name', $value, time()+$duration, '/', '.example.com')
Note the leading dot at the start of the ".example.com".
Thanks in advanced for any help that you can provide on this.
-Aaron
17 Replies
- Aaron_33366
Nimbostratus
Hoolio our posts crossed each other :) We must have bee posting at the same time. You answered my question about how to go about getting the feature request. I certainly will post the info once I have it. - hoolio
Cirrostratus
Yeah, Support will ask you to fill out a template describing the new feature and how it would help. They'll give you a request number and add it to the list of RFE's which PM/PD consider. - Aaron_33366
Nimbostratus
Over the past week we tested the iRule setting the cookie-domain and it worked in all our testing. Last night we implemented this in production and it worked for all the sites we applied this iRule to. Today we have not heard any complaints or problems. I have updated my F5 ticket with this information. I also requested the RFE today. I was waiting for a successful testing of the iRule before doing the RFE. Once I get the RFE I will post that number here. edit- sorry re-read this and didn't want to include any wrong info in a usefull post..
- Colin_Walker_12Historic F5 AccountAaron - Great news, I'm very glad to hear this worked. Definitely update once you get the RFE so we can all pile on. ;)
- Aaron_33366
Nimbostratus
Hello all. I have gotten a reply back from the F5 tech assigned to my ticket. Below is what I was emailed back. - Colin_Walker_12Historic F5 AccountGood to know. Now, to anyone that thinks this is interesting / valuable, get ahold of your sales and or support rep and let them know. ;)
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