<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Session duration in Mobile apps in Real User Monitoring</title>
    <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Session-duration-in-Mobile-apps/m-p/283550#M7052</link>
    <description>&lt;P&gt;It was strange to me why mobile sessions in Dynatrace always stay alive for 35 minutes — but now I understand why.&lt;/P&gt;&lt;P&gt;As &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/31862"&gt;@Patrick_H&lt;/a&gt;&amp;nbsp; explainedendVisit() will start a new session, but that doesn’t mean the old one is immediately closed.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Why?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In mobile apps, users often work offline. Unlike web apps, mobile apps store a lot of data locally and send it to the server later. If a session were marked as inactive in Dynatrace and, afterwards, the phone flushed its cached data, that data would be lost — because Dynatrace can’t modify sessions that are no longer live.&lt;/P&gt;&lt;P&gt;This is intentional. It would be misleading if a session originally appeared to last 10 seconds, but then suddenly jumped to 12 minutes when late data arrived.&lt;/P&gt;&lt;P&gt;Since Dynatrace can’t predict exactly when a mobile device will send its cached data, it keeps the session alive for the full 35-minute timeout period.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Aug 2025 13:50:53 GMT</pubDate>
    <dc:creator>deni</dc:creator>
    <dc:date>2025-08-11T13:50:53Z</dc:date>
    <item>
      <title>Session duration in Mobile apps</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Session-duration-in-Mobile-apps/m-p/283420#M7041</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Recently we have a case raised by our client - Why a mobile session remains live&amp;nbsp; for 35 minutes and after that its duration becomes 18 secs. We open a support ticket and an idea based on communication there. Here are the details (about the support ticket and the suggested idea): &amp;nbsp;&lt;A href="https://community.dynatrace.com/t5/Product-ideas/Automatically-End-Mobile-Sessions-Upon-App-Closure/idi-p/282899" target="_blank" rel="noopener"&gt;https://community.dynatrace.com/t5/Product-ideas/Automatically-End-Mobile-Sessions-Upon-App-Closure/idi-p/282899&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Now I'm reading the documentation again: &lt;A href="https://docs.dynatrace.com/docs/observe/digital-experience/rum-concepts/user-session#user-session-end--mobile-apps" target="_blank" rel="noopener"&gt;https://docs.dynatrace.com/docs/observe/digital-experience/rum-concepts/user-session#user-session-end--mobile-apps&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;From what I see there is 2 cases when a sessions will stay alive for 35 minutes and after that the real calculations will be done:&lt;/P&gt;
&lt;P&gt;After 10 minutes of inactivity on a mobile device.&lt;A class="" href="https://docs.dynatrace.com/docs/observe/digital-experience/rum-concepts/user-session#fn-3-1-def" target="_blank" rel="noopener"&gt;1&lt;/A&gt;&lt;BR /&gt;When the user or the mobile operating system closes or force stops the app.&lt;A class="" href="https://docs.dynatrace.com/docs/observe/digital-experience/rum-concepts/user-session#fn-3-1-def" target="_blank" rel="noopener"&gt;1&lt;/A&gt;, &lt;A class="" href="https://docs.dynatrace.com/docs/observe/digital-experience/rum-concepts/user-session#fn-3-2-def" target="_blank" rel="noopener"&gt;2&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;in both cases we have (1) where it is written: user session remains live in the Dynatrace web UI for up to 35 minutes after that.&lt;/P&gt;
&lt;P&gt;But what about: &lt;STRONG&gt;&lt;SPAN class=""&gt;When the session is ended via the Dynatrace API. ? - &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class=""&gt;There is no such remark on this. My question is what is this API that our customer can use to end the session on time (e.g. as in their case - to show the session as ended after 18 secs in Dynatrace UI and not after 35 minutes) ?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Regards, Deni&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2025 06:48:45 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Session-duration-in-Mobile-apps/m-p/283420#M7041</guid>
      <dc:creator>deni</dc:creator>
      <dc:date>2025-08-11T06:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Session duration in Mobile apps</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Session-duration-in-Mobile-apps/m-p/283422#M7042</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/90225"&gt;@deni&lt;/a&gt;,&amp;nbsp;the API is the RUM JavaScript API&amp;nbsp;&lt;A href="https://www.dynatrace.com/support/doc/javascriptapi/doc/index.html" target="_blank"&gt;https://www.dynatrace.com/support/doc/javascriptapi/doc/index.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Search for DtrumApi and the method &lt;STRONG&gt;endSession&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 22:03:46 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Session-duration-in-Mobile-apps/m-p/283422#M7042</guid>
      <dc:creator>DanielS</dc:creator>
      <dc:date>2025-08-08T22:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Session duration in Mobile apps</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Session-duration-in-Mobile-apps/m-p/283426#M7043</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/35788"&gt;@DanielS&lt;/a&gt; ,&lt;BR /&gt;Thanks for your reply!&lt;/P&gt;&lt;P&gt;It was confirmed in the support ticket that this is not supported in the Mobile apps. In the web apps it is written:&lt;/P&gt;&lt;P&gt;"When the session is ended via the &lt;A class="" title="Find out how to customize Real User Monitoring using the JavaScript API." href="https://docs.dynatrace.com/docs/observe/digital-experience/web-applications/additional-configuration/customize-rum" target="_blank" rel="noopener"&gt;RUM JavaScript API&lt;/A&gt; by calling the dtrum.endSession() function.", but in the mobile it is just: "&lt;SPAN class=""&gt;When the session is ended via the Dynatrace API.&lt;/SPAN&gt;"&amp;nbsp; - when I read something like API I imagine that it is some kind of POST http(s):// ..., but these are just guesses.&amp;nbsp; Anyway confirmed by the support "endSession" will not work in mobile, but the documentation still says that there is such API ...&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 22:11:33 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Session-duration-in-Mobile-apps/m-p/283426#M7043</guid>
      <dc:creator>deni</dc:creator>
      <dc:date>2025-08-08T22:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Session duration in Mobile apps</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Session-duration-in-Mobile-apps/m-p/283475#M7051</link>
      <description>&lt;P&gt;The endVisit API on the mobile agents (and also RUM SDK) just ends the current session and starts a new one. All new data will be sent with the new session. BUT: the end session event does not trigger an immediate closure of the live session, as closed session will be written to a different immutable storage - so the still are kept open for the default timeout in case there is delayed data being received (e.g. actions in old sessions still active during session switch) which &amp;nbsp;could no longe be adde to the ended session if instantly marked as no longe live on cluster side.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2025 07:42:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Session-duration-in-Mobile-apps/m-p/283475#M7051</guid>
      <dc:creator>Patrick_H</dc:creator>
      <dc:date>2025-08-11T07:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Session duration in Mobile apps</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Session-duration-in-Mobile-apps/m-p/283550#M7052</link>
      <description>&lt;P&gt;It was strange to me why mobile sessions in Dynatrace always stay alive for 35 minutes — but now I understand why.&lt;/P&gt;&lt;P&gt;As &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/31862"&gt;@Patrick_H&lt;/a&gt;&amp;nbsp; explainedendVisit() will start a new session, but that doesn’t mean the old one is immediately closed.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Why?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In mobile apps, users often work offline. Unlike web apps, mobile apps store a lot of data locally and send it to the server later. If a session were marked as inactive in Dynatrace and, afterwards, the phone flushed its cached data, that data would be lost — because Dynatrace can’t modify sessions that are no longer live.&lt;/P&gt;&lt;P&gt;This is intentional. It would be misleading if a session originally appeared to last 10 seconds, but then suddenly jumped to 12 minutes when late data arrived.&lt;/P&gt;&lt;P&gt;Since Dynatrace can’t predict exactly when a mobile device will send its cached data, it keeps the session alive for the full 35-minute timeout period.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2025 13:50:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Session-duration-in-Mobile-apps/m-p/283550#M7052</guid>
      <dc:creator>deni</dc:creator>
      <dc:date>2025-08-11T13:50:53Z</dc:date>
    </item>
  </channel>
</rss>

