Forum Discussion
Aaron_Magruder_
Nimbostratus
Feb 22, 2005Insert Cookie for a different domain
Is it possible to insert a cookie for domain xyz.domain.com when a customer visits abc.domain.com, then redirect them to xyz.domain.com?
When the customer gets redirected, I would like...
Aaron_Magruder_
Nimbostratus
Feb 23, 2005I have tried that too. I don't see the cookie being injected during a trace. I tried inserting a cookie by the persist and HTTP::cookie insert methods.
when CLIENT_ACCEPTED {
set ckname acc1
set ckvalue [IP::client_addr]
set ckdomain acc1.domain.com
}
when HTTP_RESPONSE {
persist cookie insert acc1.domain.com
HTTP::cookie insert name $ckname value $ckvalue path / domain $ckdomain
HTTP::redirect "http://acc1.domain.com"
}
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
