Forum Discussion
Yozzer
Mar 17, 2012Nimbostratus
sub domain session cookies
Just a bit of background on what i hope an irule can help me to achieve.
I want to send SAML tokens to a sub domain and the resulting session cookie that’s returned from a successful login n...
Yozzer
Mar 17, 2012Nimbostratus
Hi
I found the following irule on the forum to set all cookies to a different domain (not sub domain):
when HTTP_RESPONSE {
Loop through each response cookie by name
foreach aCookie [HTTP::cookie names] {
Set the domain on the cookie to .host
HTTP::cookie domain $aCookie ".host.com"
}
}
When i tested it I can see the domain request (domain=.host.com) has been added to the cookies using tamper data:
Set-Cookie: Cookie=12345&PrevPageID=1&PrevURL=https://10.1.1.1/login.aspx&SessionNo=0;domain=.host.com; path=/
But when i looked at Firefox in the cookie container, it hadnt been set for the 10.1.1.1 address which is what i was expecting however i couldnt see the cookie associated with the new .host.com domain.
how do i know if its been set?
Thanks
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