Forum Discussion
Robert_47833
Altostratus
Apr 16, 2013how to insert cookie for 2 domains
in HTTP::response event
HTTP::cookie insert name "test" value "00" path "/" domain "x.com"
besides this,I also want this cookie "test" be set in domain "xy.com"
is the second cookie tes...
Robert_47833
Altostratus
Apr 16, 2013hi,Aaron
great to see your reply
yes,I just found this ,for security reason,it is not allowed
yes,I own both domains.
all I want to do is ,let broswer or client cache cookie for xy.com when I visit x.com domain. and carry this cookie when hit xy.com(or whatever header which can act simliar as cookie)
reriect to xy.com page is not expected behavior.
I will try your solution,but ,http::redirect will redirect user brosswer to another page,is it?
seems I need to do steps below:
1:
when HTTP_RESPONSE {
HTTP::respond 302 Location "http://site2.xy.com/index.html"
HTTP::cookie insert name xxxx
}
right?
2:set cookie for xy.com in its irule which applied to site2.xy.com,right?
3:would u kindly help me to understand session cookie,for example.when I hit 1.x.com ,cookie x.com is saved,if I hit 2.x.com,it is totally a different session
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
