mjohns2_184959
Oct 02, 2015Cirrus
Cookie Persistence (iRule) Reset Timeout
We have a virtual, with several pools defined in it's iRule. The application owner has the application timeout users in 60 minutes of no activity. They've requested that the load balancer do the same, time out idle sessions after 60 minutes.
Our iRule times out users at 60 minutes of activity or no activity. Is there a way to either resend the cookie with a new timeout or reset the expire time of the existing cookie on the client?
Below is a sample of our iRule
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
“/example*”
{
pool VIPNAME1-POOLNAME
persist cookie insert cookie "0d 00:60:00"
}
“/sample*”
{
pool pool VIPNAME-POOLNAME
persist cookie insert cookie "0d 00:60:00"
}
}
}
Thanks MJ