Mar 27, 2026 - For details about updated CVE-2025-53521 (BIG-IP APM vulnerability), refer to K000156741.

Forum Discussion

Raymond_Feng_97's avatar
Raymond_Feng_97
Historic F5 Account
May 03, 2009

how to insert cookie with one day expire time

Hi, all

 

one simple question, how to insert cookie with one day expire time in iRules?

 

By default, LTM irule insert cookie HTTP:cookie is just session cookie, how to insert cookie with special expire time?

 

 

 

Best Rgds,

 

Raymond

1 Reply

  • There is some information on how to expire here:

     

    http://devcentral.f5.com/wiki/default.aspx/iRules/HTTP__cookie.html

     

     

    To set the expiration, create the cookie first, then use the expires command to set your timer. There's an example of this on code share here:

     

     

    http://devcentral.f5.com/Wiki/default.aspx/iRules/Manual_cookie_persistence.html

     

     

    HTH,

     

    -Matt