Forum Discussion
mraful_64014
Nimbostratus
Nov 16, 2011http::respond Set-Cookie
I have used the samples from the Wiki to create a response from the F5, like so
set cookie [format "%s=%s; Path=/; Domain=%s" $ckname $ckvalue ".foo.com" ]
HTTP::respond 200 content $content "Content-type" "text/html" "Set-Cookie:" $cookie
In wireshark, I can see where the LTM sets the headers but they never make it into IE. Any ideas?
5 Replies
Sort By
- nitass
Employee
this seems to be okay on my unit.[root@ve1023:Active] config b rule myrule list rule myrule { when HTTP_REQUEST { set content "test" set cookie "mycookie=1234" HTTP::respond 200 content $content "Content-type" "text/html" "Set-Cookie" $cookie } }
- mraful_64014
Nimbostratus
But does the cookie show up in you browser cache? - nitass
Employee
But does the cookie show up in you browser cache?it is session cookie. i am able to see it in httpwatch. - mraful_64014
Nimbostratus
I got it. needed the correct domain and an expiry. - hoolio
Cirrostratus
Also, I think the colon in "Set-Cookie:" would probably result in a double colon as TMM inserts one for you when setting the cookie.
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