Forum Discussion

sundogbrew's avatar
sundogbrew
Icon for Altocumulus rankAltocumulus
Jun 18, 2010

Cookie question...

This is all ways to tune this stupid application! So, my next question is the F5 sets the cookie right, does it only put it in the initial connection? Or does it put it in every connection. So for example if I set a cookie that lasts an hour. If a user is using the application for the full hour does he get reload balanced at the end of the hour or does he get reload balanced an hour after he is done with his last request? The problem I am having is that users never shut their systems down so the browser stays open so the cookie never die. So after like a week I am no longer load balancing, everyone has the server they are working on and the load doesn't end up being balanced. I would like to have a cookie timeout but don't want it to load balance them in the middle of their session. Any help on this one would be appreciated. Thanks Joe

1 Reply

  • Hi Joe,

     

     

    For cookie insert persistence it depends on whether it's a session cookie or a time expired cookie. For session cookies, LTM will only set the cookie in responses if the client didn't present a valid cookie (ie, LTM only sets a persistence cookie when a load balancing decision is made). For time expired cookie insert persistence, LTM will insert the cookie on every response.

     

     

    You can test this using a browser plugin like HttpFox for Firefox or Fiddler for IE.

     

     

    Aaron