<?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 SPWA: way to have warning before timeout? in Developers</title>
    <link>https://communities.sas.com/t5/Developers/SPWA-way-to-have-warning-before-timeout/m-p/145361#M4079</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently the SPWA times out users after some amount of time, and requires them to log in again.&amp;nbsp; (I'm not an admin, assume this is configurable)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Was wondering if there is an easy way for an admin (or even better a developer who does not have admin rights), to have a warning dialog box pop up before a user is logged off?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have had cases where during a demo/meeting review, someone has a graph open in their browser for 10 minutes discussing it.&amp;nbsp; Then they click a point to drill down and get prompted to re-login (and are thrown back to the beginning).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would rather have it work like my bank does.&amp;nbsp; Where if I stare at a single screen too long, they pop up a "Are you still there?" box with a 30 second count down to automatic logoff unless I respond.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any easy way to do this using just the default SPWA interface?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx,&lt;/P&gt;&lt;P&gt;-Q.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Nov 2013 15:20:40 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2013-11-15T15:20:40Z</dc:date>
    <item>
      <title>SPWA: way to have warning before timeout?</title>
      <link>https://communities.sas.com/t5/Developers/SPWA-way-to-have-warning-before-timeout/m-p/145361#M4079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently the SPWA times out users after some amount of time, and requires them to log in again.&amp;nbsp; (I'm not an admin, assume this is configurable)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Was wondering if there is an easy way for an admin (or even better a developer who does not have admin rights), to have a warning dialog box pop up before a user is logged off?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have had cases where during a demo/meeting review, someone has a graph open in their browser for 10 minutes discussing it.&amp;nbsp; Then they click a point to drill down and get prompted to re-login (and are thrown back to the beginning).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would rather have it work like my bank does.&amp;nbsp; Where if I stare at a single screen too long, they pop up a "Are you still there?" box with a 30 second count down to automatic logoff unless I respond.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any easy way to do this using just the default SPWA interface?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx,&lt;/P&gt;&lt;P&gt;-Q.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 15:20:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SPWA-way-to-have-warning-before-timeout/m-p/145361#M4079</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2013-11-15T15:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: SPWA: way to have warning before timeout?</title>
      <link>https://communities.sas.com/t5/Developers/SPWA-way-to-have-warning-before-timeout/m-p/145362#M4080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's a great idea ! Users in my organisation have the same problem.&lt;/P&gt;&lt;P&gt;I don't know of a way to do this easily.&lt;/P&gt;&lt;P&gt;My first thought is you could try and have the browser do the job like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) get the default session timeout in the stored process sas code with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stpsrvgetn('default session timeout')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) with some javascript, repeatedly check if the time has run out :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setInterval function can run a function in fixed intervals&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new Date().getTime() gets the current time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) 30 seconds before time runs out you show a dialog (jquery-ui is good for this)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) not sure how to keep-alive the session but maybe something like calling ajax on a dummy stp ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem with this solution is that it relies on the browser too much and that you have to put the code in all your stp.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 16:26:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SPWA-way-to-have-warning-before-timeout/m-p/145362#M4080</guid>
      <dc:creator>dcytermann</dc:creator>
      <dc:date>2013-11-25T16:26:22Z</dc:date>
    </item>
  </channel>
</rss>

