Forum Discussion

steve_111974's avatar
steve_111974
Icon for Nimbostratus rankNimbostratus
Mar 27, 2009

JESSIONID timer

Hi,

 

I just took over management of our LTM. There's an iRule for session persistence which i'm trying to figure out what the timer means.

 

Below is the irule:

 

when HTTP_RESPONSE {

 

if { [HTTP::cookie exists "JSESSIONID"] } {

 

persist add uie [HTTP::cookie "JSESSIONID"] 14400

 

sticky entry stays for 4hrs (14400sec)

 

log local0. ?Server cookie found with ID [HTTP::cookie "JSESSIONID"]?

 

}

 

}

 

when HTTP_REQUEST {

 

if { [HTTP::cookie exists "JSESSIONID"] } {

 

persist uie [HTTP::cookie "JSESSIONID"] 14400

 

sticky entry stays for 4hrs (14400sec)

 

log local0. ?Client cookie received from [HTTP::client_addr] with ID [HTTP::cookie "JSESSIONID"]?

 

}

 

}

 

The question I have is the "14400". This is a timer setting expressed in seconds (4hrs). What does this do? Is it an absolute timer which means that the session with be "stuck" to the node for this duration?
  • That timer defines how long a persistence entry will last in the persistence table, and your description looks dead on the money!

     

    -Matt