<?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: Setting and retrieving User Session Property values via JS API? in Real User Monitoring</title>
    <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Setting-and-retrieving-User-Session-Property-values-via-JS-API/m-p/116205#M1511</link>
    <description>&lt;P&gt;As far as I know, there is no option to retrieve any user session property values from the dtrum js api. User session properties can be only set in dtrum. The architecture of beacons is "send only". Session data are processed on the server.&lt;/P&gt;&lt;P&gt;I'm afraid you will have to find another solution using cookie seems to be a straightforward idea.&lt;/P&gt;&lt;P&gt;Values of user session properties can be only used within session analysis (you can filter on them or display them). Also, they can be used in USQL queries as well.&lt;/P&gt;&lt;P&gt;More on this topic in &lt;A href="https://www.dynatrace.com/news/blog/filter-user-sessions-based-on-custom-session-properties-eap/"&gt;this blog post&lt;/A&gt;.&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 27 Mar 2019 07:38:02 GMT</pubDate>
    <dc:creator>Julius_Loman</dc:creator>
    <dc:date>2019-03-27T07:38:02Z</dc:date>
    <item>
      <title>Setting and retrieving User Session Property values via JS API?</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Setting-and-retrieving-User-Session-Property-values-via-JS-API/m-p/116204#M1510</link>
      <description>&lt;P&gt;I have a requirement to pass the numeric ID returned from the &lt;EM&gt;DTRUM.enterAction &lt;/EM&gt;method that is being called in a logon web page provided by one of our&lt;BR /&gt;authentication systems to a web page of another system. Since there is no way&lt;BR /&gt;for us to pass the value via a cookie, JS variable etc. without making&lt;BR /&gt;extensive system changes, I am hoping that use can be made of the new User&lt;BR /&gt;Session Properties features of version 164. Whether this is going to be possible,&lt;BR /&gt;however, isn’t clear to me from the documentation.&lt;/P&gt;
&lt;P&gt;I can&lt;BR /&gt;see that DTRUM provides a &lt;EM&gt;send&lt;/EM&gt;&lt;EM&gt;Session&lt;/EM&gt;&lt;EM&gt;Properties&lt;BR /&gt;&lt;/EM&gt;method that, I suspect, could be used to add the numeric ID to the user&lt;BR /&gt;session (?), but I am not clear whether Dynatrace provides any mechanism that would&lt;BR /&gt;allow the JS in our destination web page to retrieve the value. Looking at the&lt;BR /&gt;DTRUM documentation I don’t see any such capability. Can anyone clarify whether&lt;BR /&gt;we can achieve what we want using a User Session variable? What I had hoped to&lt;BR /&gt;do is illustrated by the following:&lt;/P&gt;
&lt;P&gt;// &lt;STRONG&gt;Step 1&lt;/STRONG&gt; – In web page of the user authentication&lt;BR /&gt;system call dtrum.enterAction to start a custom user action&lt;/P&gt;
&lt;P&gt;LogonTimerAction = dtrum.enterAction('Logon Time', 'LogonTimer',&lt;BR /&gt;null, 'info');&lt;/P&gt;
&lt;P&gt;//&lt;BR /&gt;&lt;STRONG&gt;Step 2&lt;/STRONG&gt; – In web page of the user authentication, put the return value of the&lt;BR /&gt;above API call into a User Session Property via the sendSessionProperties&lt;BR /&gt;API (?)&lt;/P&gt;
&lt;P&gt;//&lt;BR /&gt;&lt;STRONG&gt;Step 3 &lt;/STRONG&gt;– In the destination systems web page, retrieve the variable from the&lt;BR /&gt;user session attribute.&lt;/P&gt;
&lt;P&gt;//&lt;BR /&gt;&lt;STRONG&gt;Step 4 &lt;/STRONG&gt;– In the destination systems web page, pass the variable to&lt;BR /&gt;dtrum.leaveAction to close the action and obtain its timing.&lt;/P&gt;
&lt;P&gt;dtrum.leaveAction(LogonTimerAction);&lt;/P&gt;
&lt;P&gt;More generally,&lt;BR /&gt;can you tell me where I can find detailed documentation for the Session&lt;BR /&gt;properties configuration options? I see “JavaScript API” as an “Expression type”&lt;BR /&gt;that can be selected, but I am unable to find any documentation of what this&lt;BR /&gt;represents or how to configure it. Similarly, I understand that we can set session&lt;BR /&gt;properties using request attributes, but I cannot find documentation of how to&lt;BR /&gt;configure a session attribute using a request attribute.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 13:00:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Setting-and-retrieving-User-Session-Property-values-via-JS-API/m-p/116204#M1510</guid>
      <dc:creator>jeff_rowell</dc:creator>
      <dc:date>2021-04-27T13:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Setting and retrieving User Session Property values via JS API?</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Setting-and-retrieving-User-Session-Property-values-via-JS-API/m-p/116205#M1511</link>
      <description>&lt;P&gt;As far as I know, there is no option to retrieve any user session property values from the dtrum js api. User session properties can be only set in dtrum. The architecture of beacons is "send only". Session data are processed on the server.&lt;/P&gt;&lt;P&gt;I'm afraid you will have to find another solution using cookie seems to be a straightforward idea.&lt;/P&gt;&lt;P&gt;Values of user session properties can be only used within session analysis (you can filter on them or display them). Also, they can be used in USQL queries as well.&lt;/P&gt;&lt;P&gt;More on this topic in &lt;A href="https://www.dynatrace.com/news/blog/filter-user-sessions-based-on-custom-session-properties-eap/"&gt;this blog post&lt;/A&gt;.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Mar 2019 07:38:02 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Setting-and-retrieving-User-Session-Property-values-via-JS-API/m-p/116205#M1511</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2019-03-27T07:38:02Z</dc:date>
    </item>
  </channel>
</rss>

