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