# JSESSIONID Universal Persistence

**URL:** <https://community.f5.com/t/jsessionid-universal-persistence/37534>\
**Category:** Technical Forums\
**Tags:** irules, application-delivery\
**Created:** [January 25, 2017, 1:10pm UTC](https://community.f5.com/t/jsessionid-universal-persistence/37534 "2017-01-25T13:10:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sachin\_80710](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@sachin\_80710](https://community.f5.com/u/sachin_80710)\
**Post date:** [January 25, 2017, 1:10pm UTC](https://community.f5.com/t/jsessionid-universal-persistence/37534/1 "2017-01-25T13:10:03Z")

</div>

Hi Team,

I have query on Universal persistence table/record created by below or any jessionid universal persistence irule. All TMM will refer to same universal persistence table or seperate universal persistence table is maintained for each TMM.

Our setup has two virtual server on different ip(two ISP) but same application behind it and same configuration

I am asking this question since we had issue where in we saw client initially was received on TMM1(VS1) and server1 was selected but after few sec (15 or 20 sec) same client request (with old jsessionid cookie) was received on different tmm and different virtual server(VS2) but this time instead forwarding connection to server1 request was sent to server2.

would like to know every tmm has seperate universal persistence table or i have to enable accross all virtual server/ service in persistence setting?

when HTTP\_RESPONSE { if { [HTTP::cookie “JSESSIONID”] ne “”} { persist add uie [HTTP::cookie “JSESSIONID”] log local0. “[IP::client\_addr] Clairmail persistence HTTP\_Response. Cookies: [HTTP::header values Cookie]” } } when HTTP\_REQUEST { if { [HTTP::cookie “JSESSIONID”] ne “”} { persist uie [HTTP::cookie “JSESSIONID”] log local0. “[IP::client\_addr] Clairmail HttpRequest. Set-Cookies: [HTTP::header values Cookie]” } }

---

<div class="post-metadata">

**Author:** ![KeesvandenBos](https://avatars.discourse-cdn.com/v4/letter/k/ecb155/32.png) [@KeesvandenBos](https://community.f5.com/u/KeesvandenBos)\
**Post date:** [January 25, 2017, 1:21pm UTC](https://community.f5.com/t/jsessionid-universal-persistence/37534/2 "2017-01-25T13:21:22Z")

</div>

You have to enable Match Across Virtual Servers in your Universal Persistence profile. And attach the same persistence profile to your virtual servers.

Cheers,

Kees
