Forum Discussion
daveg_20243
Oct 19, 2011Nimbostratus
Trouble removing cookie
Hi, So I'm attempting to remove a cookie, nothing to fancy. I've got this basic irule: when HTTP_REQUEST { HTTP::cookie remove "my-cookie" } ...
nitass
Oct 19, 2011Employee
e.g. request
[root@iris:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.28.17.33:http
ip protocol tcp
profiles {
http {}
tcp {}
}
}
[root@iris:Active] config b pool foo list
pool foo {
members 10.10.70.110:http {}
}
New TCP connection 1: 192.168.206.102(61397) <-> 172.28.17.33(80)
---------------------------------------------------------------
1319006186.8912 (0.0170) C>S
---------------------------------------------------------------
GET /dog.gif HTTP/1.1
Host: 172.28.17.33
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.23) Gecko/20110920 Firefox/3.6.23
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://172.28.17.33/
Cookie: my-cookie=helloworld
New TCP connection 2: 10.10.72.30(61397) <-> 10.10.70.110(80)
---------------------------------------------------------------
1319006186.8913 (0.0172) C>S
---------------------------------------------------------------
GET /dog.gif HTTP/1.1
Host: 172.28.17.33
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.23) Gecko/20110920 Firefox/3.6.23
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://172.28.17.33/
Cookie: my-cookie=helloworld
[root@iris:Active] config b virtual bar rule myrule
[root@iris:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.28.17.33:http
ip protocol tcp
rules myrule
profiles {
http {}
tcp {}
}
}
[root@iris:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
HTTP::cookie remove "my-cookie"
}
}
New TCP connection 1: 192.168.206.102(61539) <-> 172.28.17.33(80)
---------------------------------------------------------------
1319006687.2403 (0.0396) C>S
---------------------------------------------------------------
GET /dog.gif HTTP/1.1
Host: 172.28.17.33
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.23) Gecko/20110920 Firefox/3.6.23
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://172.28.17.33/
Cookie: my-cookie=helloworld
New TCP connection 2: 10.10.72.30(61539) <-> 10.10.70.110(80)
---------------------------------------------------------------
1319006687.2404 (0.0398) C>S
---------------------------------------------------------------
GET /dog.gif HTTP/1.1
Host: 172.28.17.33
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.23) Gecko/20110920 Firefox/3.6.23
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://172.28.17.33/
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