<?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: Is it possible to kill a user session of web application where map is displayed, on click of a custom widget button? in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-it-possible-to-kill-a-user-session-of-web/m-p/856630#M11444</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to add a logout button on the map as a widget, so that on clicking that widget, it should redirect me to my login screen *AND* end the session (using JWT for session management). I was thinking if its possible to end my web app's user session by writing code in the widget's widget.js file? Any ideas or suggestions on how I can do that? Thank you.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Mar 2019 16:05:24 GMT</pubDate>
    <dc:creator>KosmasKaradimitriou</dc:creator>
    <dc:date>2019-03-13T16:05:24Z</dc:date>
    <item>
      <title>Is it possible to kill a user session of web application where map is displayed, on click of a custom widget button?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-it-possible-to-kill-a-user-session-of-web/m-p/856628#M11442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My company has a web application implemented in MERN stack. We are using JWT for session management. What we are trying to do is, when the user logs into the app, they should be able to see a logout button on the map(which we are displaying in an iframe).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We tried following&amp;nbsp;&lt;A href="https://community.esri.com/docs/DOC-8591-url-button-widget-version-23-02142017"&gt;https://community.esri.com/docs/DOC-8591-url-button-widget-version-23-02142017&lt;/A&gt;&amp;nbsp; by &lt;A href="https://community.esri.com/migrated-users/3101"&gt;Robert Scheitlin, GISP&lt;/A&gt;. However, I'm not sure how we can kill the session from our web application. Clicking on the widget will redirect to another website on a new tab, but the map still remains. Has anyone done this before? Is there any other way to implement what we are trying to do?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3101"&gt;Robert Scheitlin, GISP&lt;/A&gt;‌, I would very much appreciate your help. I have been following a lot of your answers from here on the community to solve minor problems.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion or idea would help. I am completely new to WAB developer edition so would be grateful for a comprehensive suggestion. Looking forward to hearing from someone soon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2019 22:16:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-it-possible-to-kill-a-user-session-of-web/m-p/856628#M11442</guid>
      <dc:creator>KosmasKaradimitriou</dc:creator>
      <dc:date>2019-03-12T22:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to kill a user session of web application where map is displayed, on click of a custom widget button?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-it-possible-to-kill-a-user-session-of-web/m-p/856629#M11443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kosmas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The url button widget is designed to always open the url in a new window/Tab. You can change this behavior in the code.&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;  window&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;open&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;config&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;LinkUrl&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"_self"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2019 13:03:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-it-possible-to-kill-a-user-session-of-web/m-p/856629#M11443</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-03-13T13:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to kill a user session of web application where map is displayed, on click of a custom widget button?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-it-possible-to-kill-a-user-session-of-web/m-p/856630#M11444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to add a logout button on the map as a widget, so that on clicking that widget, it should redirect me to my login screen *AND* end the session (using JWT for session management). I was thinking if its possible to end my web app's user session by writing code in the widget's widget.js file? Any ideas or suggestions on how I can do that? Thank you.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2019 16:05:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-it-possible-to-kill-a-user-session-of-web/m-p/856630#M11444</guid>
      <dc:creator>KosmasKaradimitriou</dc:creator>
      <dc:date>2019-03-13T16:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to kill a user session of web application where map is displayed, on click of a custom widget button?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-it-possible-to-kill-a-user-session-of-web/m-p/856631#M11445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kosmas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I have zero experience with JWT Sessions. You can write your code in the Widget,js.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2019 16:14:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-it-possible-to-kill-a-user-session-of-web/m-p/856631#M11445</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-03-13T16:14:42Z</dc:date>
    </item>
  </channel>
</rss>

