# dtCookie structure?

**URL:** <https://community.dynatrace.com/t/dtcookie-structure/45738>\
**Category:** Open Q&A\
**Tags:** real-user-monitoring-classic\
**Created:** [May 23, 2024, 2:48pm UTC](https://community.dynatrace.com/t/dtcookie-structure/45738 "2024-05-23T14:48:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [May 23, 2024, 2:48pm UTC](https://community.dynatrace.com/t/dtcookie-structure/45738/1 "2024-05-23T14:48:58Z")

</div>

When diagnosing RUM problems, knowing the structure of dtCookie might come handy. In the documentation, we can see:

> **[Cookies and client-side storage for RUM and Session Replay](https://docs.dynatrace.com/docs/manage/data-privacy-and-security/data-privacy/rum-cookies-and-web-storage)**
>
> Learn how Dynatrace RUM and Session Replay use cookies, web storage, and IndexedDB.

 ![AntonioSousa_0-1716475439774.png](https://global.discourse-cdn.com/dynatrace/original/3X/4/0/409972d26d097b751d6e80d4f59b9b96ab6bc514.png)

Some are more intuitive than others.

In the following URL, [@henk\_stobbe](https://community.dynatrace.com/user/11427) shows that we have remove the 3A in app:  
[https://community.dynatrace.com/t5/Dynatrace-tips/how-to-reverse-engineer-a-dtCookie-so-you-can-see-what-placed/m-p/182943](https://community.dynatrace.com/post/182943)

But other keys are more cryptic, including srv & sn. And others I have found no reference, like rcs-3Acss

Anyone got more info on this that can be shared?

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [May 23, 2024, 6:48pm UTC](https://community.dynatrace.com/t/dtcookie-structure/45738/2 "2024-05-23T18:48:06Z")

</div>

the cryptic cookie structure… I always cringe when i have to break it all down. let me see if one of my RUM contacts can break it down for us.

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [May 24, 2024, 11:07am UTC](https://community.dynatrace.com/t/dtcookie-structure/45738/3 "2024-05-24T11:07:29Z")

</div>

[@AntonioSousa](https://community.dynatrace.com/user/17213)&nbsp;the ‘sn’ and the values after it, is it possible that the string is the host ID or even the process/service ID that is supporting the call/injection?

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [May 24, 2024, 12:19pm UTC](https://community.dynatrace.com/t/dtcookie-structure/45738/4 "2024-05-24T12:19:45Z")

</div>

[@ChadTurner](https://community.dynatrace.com/user/14877),

As a cookie, it wouldn’t make much sense&nbsp; to be based on host & processes and even services. They all change quite frequently, while dtCookie seems to be pretty stable. It does support several applications though, so I suspect it keeps growing.

And then there’s the length. The sn has 32 chars, while the host/processes & services have IDs with 16 chars. I have tried finding 16 char blocks, but with no success.

It would be more correct to match it to a User ID, but those are 45 chars long, although I suspect the first 13 digits are a timestamp. So, it’s also 32 chars. I did a quick comparison with a session I know is mine, but they didn’t match. Looking at the sn, it seems purely hexadecimal, while the User ID might be a Base64 encoding. Did a quick test, but it did not yield any conclusion…

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [May 24, 2024, 12:22pm UTC](https://community.dynatrace.com/t/dtcookie-structure/45738/5 "2024-05-24T12:22:07Z")

</div>

hmm, good job looking into those possible justifications. I reached out to a RUM person asking what all that means. Haven’t heard back, ill hit up another rum expert that I have in my contacts.
