Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

iRule persist cookie - Session Cookie

Claudio_Soares
Nimbostratus
Nimbostratus

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

1 REPLY 1

Hello Claudio.

 

Yes, It's totally valid (see 7th example).

https://clouddocs.f5.com/api/irules/persist.html

 

Regads,

Dario.

Regards,
Dario.