I think I finally figured out how to use the PROFILE::persist commands (after some trial and error)...
Here is what I have along with the output
profile persist my_cookie_profile {
defaults from cookie
mode cookie
cookie mode insert
cookie name MY_PERSIST_COOKIE
cookie expiration 0d 00:10:00
}
when CLIENT_ACCEPTED {
if { [PROFILE::exists clientssl] == 1} {
log local0. "client SSL profile enabled on virtual server"
set cert [PROFILE::clientssl cert]
log local0. "clientssl certificate is: $cert"
set key [PROFILE::clientssl key]
log local0. "clientssl key is: $key"
}
if { [PROFILE::exists persist cookie] == 1} {
log local0. "persist cookie profile enabled on virtual server"
set cookie_profile_name [PROFILE::persist mode cookie name]
log local0. "persist cookie profile name is: $cookie_profile_name"
set persist_cookie_name [PROFILE::persist mode cookie cookie_name]
log local0. "Name of the cookie used for persistence is: $persist_cookie_name"
set cookie_expiration [PROFILE::persist mode cookie cookie_expiration]
log local0. "Cookie expiration is set for: $cookie_expiration"
}
}
***********output**************
Jun 18 00:30:34 tmm tmm[28049]: Rule read_PROFILE_Commands : client SSL profile enabled on virtual server
Jun 18 00:30:34 tmm tmm[28049]: Rule read_PROFILE_Commands : clientssl certificate is: dev-crm.crt
Jun 18 00:30:34 tmm tmm[28049]: Rule read_PROFILE_Commands : clientssl key is: dev-crm.key
Jun 18 00:30:34 tmm tmm[28049]: Rule read_PROFILE_Commands : persist cookie profile enabled on virtual server
Jun 18 00:30:34 tmm tmm[28049]: Rule read_PROFILE_Commands : persist cookie profile name is: my_cookie_profile
Jun 18 00:30:34 tmm tmm[28049]: Rule read_PROFILE_Commands : Name of the cookie used for persistence is: MY_PERSIST_COOKIE
Jun 18 00:30:34 tmm tmm[28049]: Rule read_PROFILE_Commands : Cookie expiration is set for: 600