Forum Discussion
rajb
Nimbostratus
Paulius I get the following in the logs
Feb 15 13:04:37 lb1.ptp.local info tmm2[19397]: Rule /Common/delete_cookie_test <HTTP_REQUEST>: Cookie name is: loadedFromBrowserCache
Feb 15 13:04:37 lb1.ptp.local info tmm2[19397]: Rule /Common/delete_cookie_test <HTTP_REQUEST>: Domain name is :
Feb 15 13:04:37 lb1.ptp.local info tmm2[19397]: Rule /Common/delete_cookie_test <HTTP_REQUEST>: Cookie name is: _gid
Feb 15 13:04:37 lb1.ptp.local info tmm2[19397]: Rule /Common/delete_cookie_test <HTTP_REQUEST>: Domain name is :
Feb 15 13:04:37 lb1.ptp.local info tmm2[19397]: Rule /Common/delete_cookie_test <HTTP_REQUEST>: Cookie name is: _ga
Feb 15 13:04:37 lb1.ptp.local info tmm2[19397]: Rule /Common/delete_cookie_test <HTTP_REQUEST>: Domain name is :
Feb 15 13:04:37 lb1.ptp.local info tmm2[19397]: Rule /Common/delete_cookie_test <HTTP_REQUEST>: Cookie name is: GuysOnlineFilter
Feb 15 13:04:37 lb1.ptp.local info tmm2[19397]: Rule /Common/delete_cookie_test <HTTP_REQUEST>: Domain name is :
Feb 15 13:04:37 lb1.ptp.local info tmm2[19397]: Rule /Common/delete_cookie_test <HTTP_REQUEST>: Cookie name is: CruisingListingsFilter
Feb 15 13:04:37 lb1.ptp.local info tmm2[19397]: Rule /Common/delete_cookie_test <HTTP_REQUEST>: Domain name is :
Feb 15 13:04:37 lb1.ptp.local info tmm2[19397]: Rule /Common/delete_cookie_test <HTTP_REQUEST>: Cookie name is: notifycached
Feb 15 13:04:37 lb1.ptp.local info tmm2[19397]: Rule /Common/delete_cookie_test <HTTP_REQUEST>: Domain name is :
Paulius
Feb 16, 2023MVP
rajb Try out this iRule and internal data-group to see if it works for you.
when HTTP_REQUEST priority 500 {
# Check if we have already deleted the cookies
log local0. "Running within HTTP_REQUEST"
if {![HTTP::cookie exists tracking_cookie]} {
log local0. "Running within tracking_cookie"
foreach a_cookie [HTTP::cookie names] {
# Compares the cookie name to the internal data-group list called CLASS-CookieList
if { [class match -- [HTTP::cookie name ${a_cookie}] == CLASS-CookieList] } {
set CookieDomain [HTTP::cookie domain ${a_cookie}]
log local0. "Executing cookie: ${a_cookie}"
log local0. "Domain name is: ${CookieDomain}"
}
}
}
}
The following data-group can be loaded into your configuration by using "load sys config from-terminal merge" without the quotations. You will see a prompt that shows you the key sequence to press to commit the change you are loading in. Make sure it is the exact command less the quotation marks.
ltm data-group internal CLASS-CookieList {
records {
CruisingListingsFilter { }
GuysOnlineFilter { }
_ga { }
_gid { }
loadedFromBrowserCache { }
notifycached { }
}
type string
}
I am interested in knowing what the logs show after using this iRule if you can parse the logs for your iRule name which seems to be called "delete_cookie_test" on your F5.