Forum Discussion
Angelo
Jun 28, 2018Nimbostratus
Cookie 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 HTTP::cookie insert name "YOUR2ndCOOKIENAME" value $VARIABLE2 }
- youssef1Cumulonimbus
Hi,
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
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