Forum Discussion
Angelo
Nimbostratus
Jun 28, 2018Cookie Insert
Hi
I need to add to cookies into a http_response not sure if my rule is correct
when HTTP_RESPONSE {
HTTP::cookie insert name "YOUR1stCOOKIENAME" value $VARIABLE1
HTT...
youssef1
Cumulonimbus
Jun 29, 2018Hi,
you can try this:
when HTTP_RESPONSE {
set cookiename "mycookiename"
set cookievalue "blablabla"
set cookiepath "/"
HTTP::cookie insert name $cookiename value $s_cookieValue path $s_cookiePath domain $s_cookieDomain version 1
HTTP::cookie secure $cookiename enable
}
Give me the context and I can help you to built your irule.
As you can noticed i add you the availlability to pass your cookie in secure mode, you can add httponly also if you want...
Regards
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
