Forum Discussion

mraful_64014's avatar
Icon for Nimbostratus rankNimbostratus
Nov 16, 2011

http::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 "" ]



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

  • 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
  • But does the cookie show up in you browser cache?it is session cookie. i am able to see it in httpwatch.
  • 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.