<?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 Timeout in power Bi Embededd in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Session-Timeout-in-power-Bi-Embededd/m-p/4110352#M36492</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="794224" data-lia-user-login="sajjadniazi" class="lia-mention lia-mention-user"&gt;sajjadniazi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can refer to the following documentation to listen for events after this report is loaded in JavaScript&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/javascript/api/overview/powerbi/handle-events" target="_blank"&gt;How to handle events in a Power BI embedded analytics application | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;When the session is about to expire, you can request a new token, you can refer to the JavaScript method in the following document to obtain it:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/javascript/api/overview/powerbi/refresh-token" target="_blank"&gt;Refresh the access token in Power BI embedded analytics | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;In addition, if you want to listen to the user's actions on the report, you can use the following Javascript functions:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/javascript/api/overview/powerbi/handle-events#report-events" target="_blank"&gt;How to handle events in a Power BI embedded analytics application | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Use these methods above to implement your needs. If you want to listen to these events globally, you need to use in JavaScript you can use:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;window.addEventListener('click', function(event) {
console.log('Global click event triggers');
});&lt;/LI-CODE&gt;
&lt;P&gt;&lt;A href="https://www.w3schools.com/jsreF/met_win_addeventlistener.asp" target="_blank"&gt;Window addEventListener() Method (w3schools.com)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;This listens for global events, places the methods provided by the previous Power BI JavaScript into your global events, and sets the listening interval to ensure that the session doesn't time out back.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Jianpeng &lt;/SPAN&gt;&lt;SPAN&gt;Li&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;If this post &lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Aug 2024 04:20:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-08-21T04:20:38Z</dc:date>
    <item>
      <title>Session Timeout in power Bi Embededd</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Session-Timeout-in-power-Bi-Embededd/m-p/4108481#M36475</link>
      <description>&lt;DIV class=""&gt;Our application has a session timeout set to 30 minutes. We are using Power BI Embedded for integrating reports into our application. However, we are encountering an issue where the user session times out even while they are interacting with the embedded Power BI reports, leading to unexpected logouts.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;We are seeking a solution that would allow us to keep the application session active while the user is engaged with the Power BI reports. Specifically, we are exploring the possibility of triggering events based on user interactions within the Power BI reports, which could be sent back to our application. These events would serve as "activity signals" that reset or extend the session timeout, ensuring the session remains active as long as the user is interacting with the report.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Is there a solution that utilizes Power BI's JavaScript API to listen for specific user actions? or is there a place where we can insert our custom JavaScript that would be globally executed whenever a report is rendered?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 20 Aug 2024 06:48:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Session-Timeout-in-power-Bi-Embededd/m-p/4108481#M36475</guid>
      <dc:creator>sajjadniazi</dc:creator>
      <dc:date>2024-08-20T06:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Session Timeout in power Bi Embededd</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Session-Timeout-in-power-Bi-Embededd/m-p/4110352#M36492</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="794224" data-lia-user-login="sajjadniazi" class="lia-mention lia-mention-user"&gt;sajjadniazi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can refer to the following documentation to listen for events after this report is loaded in JavaScript&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/javascript/api/overview/powerbi/handle-events" target="_blank"&gt;How to handle events in a Power BI embedded analytics application | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;When the session is about to expire, you can request a new token, you can refer to the JavaScript method in the following document to obtain it:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/javascript/api/overview/powerbi/refresh-token" target="_blank"&gt;Refresh the access token in Power BI embedded analytics | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;In addition, if you want to listen to the user's actions on the report, you can use the following Javascript functions:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/javascript/api/overview/powerbi/handle-events#report-events" target="_blank"&gt;How to handle events in a Power BI embedded analytics application | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Use these methods above to implement your needs. If you want to listen to these events globally, you need to use in JavaScript you can use:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;window.addEventListener('click', function(event) {
console.log('Global click event triggers');
});&lt;/LI-CODE&gt;
&lt;P&gt;&lt;A href="https://www.w3schools.com/jsreF/met_win_addeventlistener.asp" target="_blank"&gt;Window addEventListener() Method (w3schools.com)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;This listens for global events, places the methods provided by the previous Power BI JavaScript into your global events, and sets the listening interval to ensure that the session doesn't time out back.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Jianpeng &lt;/SPAN&gt;&lt;SPAN&gt;Li&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;If this post &lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 04:20:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Session-Timeout-in-power-Bi-Embededd/m-p/4110352#M36492</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-21T04:20:38Z</dc:date>
    </item>
  </channel>
</rss>

