F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

Claudio_Soares's avatar
Claudio_Soares
Icon for Nimbostratus rankNimbostratus
Aug 20, 2020

iRule persist cookie - Session Cookie

Hello all,

 

I'm kind of newbie here, and I'm trying to change the default persistence cookie through an iRule.

 

 

when HTTP_REQUEST {

switch -glob -- [string tolower [HTTP::host]] {

  "some_url" {

...

    pool /server_pool_1

    persist cookie insert newcookie 0

    return

  }

}

 

Is this the best way to make it Session Cookie?

 

Thanks for all your help.

 

Regards,

Claudio Soares