Forum Discussion
Yozzer
Nimbostratus
Dec 17, 2014Cookies
Hi
Im having an issue with Cookies not being accepted at the server unless they are within the same Cookie header:
Cookie: blah=blah; blahs=blahs;
If there are two Cookie headers then...
Yozzer
Nimbostratus
Dec 17, 2014I have:
when HTTP_REQUEST {
Merge cookies and insert cookie that changes the URL
set hostaddr [HTTP::host]
set existing cookies
set cookie_names [HTTP::cookie names] if { $cookie_names ne "" } { foreach cookie $cookie_names { set cookie_value [HTTP::cookie $cookie] HTTP::cookie remove $cookie HTTP::cookie insert name $cookie value $cookie_value path / version 1 } } }
But I want to also merge a new cookie generated in the irule such as this:
HTTP::header insert "Cookie" "Url=https://$hostaddr/server.aspx"
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