Forum Discussion

jlipscom_44384's avatar
jlipscom_44384
Icon for Nimbostratus rankNimbostratus
Feb 27, 2008

Deleting Cookies of non F5 type upon login

I am looking to use the F5 to delete a cookie from both IE and Firefox browsers to eliminate a persistant cookie given by another product within our system. If the user doesnt properly log out and clicks the "X" off our page the cookie doesn't go away unless all browsers are closed. Thus the old cookie is present when a different user uses that same computer if the browser isnt completely closed. Can I write a custom irule to delete the old cookie prior to issuing a new one? this is not an F5 cookie?

 

 

Note, I fount this off the Dev cenral site that put me down the road beleiving it might be possible

 

 

•HTTP::cookie - Queries for or manipulates cookies in HTTP requests and responses.

 

 

HTTP::cookie names

 

HTTP::cookie count

 

HTTP::cookie [value] []

 

HTTP::cookie version [version]

 

HTTP::cookie path [path]

 

HTTP::cookie domain [domain]

 

HTTP::cookie ports [portlist]

 

HTTP::cookie insert name value [path ] [domain ] [version <0 | 1 | 2>]

 

HTTP::cookie remove

 

HTTP::cookie sanitize [attribute]+

 

HTTP::cookie exists

 

HTTP::cookie maxage [seconds]

 

HTTP::cookie expires [seconds] [absolute | relative]

 

HTTP::cookie comment [comment]

 

HTTP::cookie secure [enable|disable]

 

HTTP::cookie commenturl [commenturl]

 

HTTP::cookie encrypt ["128" | "192" | "256"]

 

HTTP::cookie decrypt ["128" | "192" | "256"]

 

1 Reply

  • Hi,

     

     

    You can expire a cookie even if it's not a F5 cookie.

     

     

    To do so you need to update the cookie you're interested in within the HTTP_RESPONSE.

     

     

    You can use such a command to do the job:

     

     

    HTTP::cookie insert name value "...."

     

     

    To expire a cookie, when you set the new cookie value you can use expires=-1. It should reset the cookie.