Hi Zafer,
It's good to hear that the rule is working for you.
Take a look at the notes in the codeshare example for details on the timeout (
Click here)
This iRule is intended to be applied under a Universal persistence profile configured with an appropriate timeout. If it is instead applied directly to a virtual server as a Resource, it must be modified to add a persistence timeout parameter to the "perist add" command.
So if you're not setting the persistence timeout using a UIE profile on the VIP, you can specify a timeout on the end of the 'persist add' line (
Click here).
When a client request with an existing session ID is parsed, the timeout will be reset.
Aaron